From 5585cc8aa103bffa652db30bea785d52d55af0c0 Mon Sep 17 00:00:00 2001 From: Darshan-upadhyay1110 Date: Thu, 2 Jan 2025 14:22:40 +0530 Subject: [PATCH] Revert "jsdialog: no padding in treeview context menu" - This reverts commit 9664c3ff443147286336a2450c44e6da46fae8a2. - previously commited with duplicated changeid and wrong message Signed-off-by: Darshan-upadhyay1110 Change-Id: If823afd25acc6ad4c0985a78e9e8eee09501ef52 --- browser/src/control/Control.JSDialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browser/src/control/Control.JSDialog.js b/browser/src/control/Control.JSDialog.js index faa1af180aea..736a0dee50a2 100644 --- a/browser/src/control/Control.JSDialog.js +++ b/browser/src/control/Control.JSDialog.js @@ -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) {