From 73fe57ec6ba4bf814adfd0ad42a30ea3535ebb46 Mon Sep 17 00:00:00 2001 From: Darshan-upadhyay1110 Date: Sat, 21 Dec 2024 15:33:25 +0530 Subject: [PATCH] Focus inside input field on show show input modal Signed-off-by: Darshan-upadhyay1110 Change-Id: I5a29ddf7b4562221fc8a6c574a775d2a2e9180a8 --- browser/src/control/Control.UIManager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index cd4f9510d892..9e637e9b94e4 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -1570,6 +1570,9 @@ L.Control.UIManager = L.Control.extend({ that.closeModal(dialogId); }} ]); + + // focus on input modal on show + document.getElementById('input-modal-input').focus(); }, /// Shows an info bar at the bottom right of the view.