Skip to content

Commit

Permalink
Revert "jsdialog: no padding in treeview context menu"
Browse files Browse the repository at this point in the history
- This reverts commit 9664c3f.
- previously commited with duplicated changeid and wrong message

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: If823afd25acc6ad4c0985a78e9e8eee09501ef52
  • Loading branch information
Darshan-upadhyay1110 authored and eszkadev committed Jan 3, 2025
1 parent 9a61792 commit 5585cc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions browser/src/control/Control.JSDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ L.Control.JSDialog = L.Control.extend({

} else {
// will directly set element of focusable element based on init focus id
// If init_id is not defined, select the first focusable element from the container
firstFocusableElement = instance.init_focus_id ? instance.container.querySelector('[id=\'' + instance.init_focus_id + '\']') : JSDialog.GetFocusableElements(instance.container);
firstFocusableElement = instance.init_focus_id ? instance.container.querySelector('[id=\'' + instance.init_focus_id + '\']') : null;
}

if (firstFocusableElement && document.activeElement !== firstFocusableElement && instance.canHaveFocus) {
Expand Down

0 comments on commit 5585cc8

Please sign in to comment.