Skip to content

Commit

Permalink
Focus inside input field on show show input modal
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I5a29ddf7b4562221fc8a6c574a775d2a2e9180a8
  • Loading branch information
Darshan-upadhyay1110 committed Dec 21, 2024
1 parent 6e2e2ae commit 73fe57e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/src/control/Control.UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 73fe57e

Please sign in to comment.