From ec3b94ac5d4444b31be5819d232d765ab014c469 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 29 Oct 2023 17:12:29 +0300 Subject: [PATCH] dont focus if its alrdy focused --- files/assets/js/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index de644c1ee..114773c2a 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -473,7 +473,8 @@ function insertText(input, text) { if (typeof checkForRequired === "function") checkForRequired(); setTimeout(() => { - input.focus(); + if (document.activeElement !== input) + input.focus(); }, 200); }