dont focus if its alrdy focused

master
Aevann 2023-10-29 17:12:29 +03:00
parent cba64ae93f
commit ec3b94ac5d
1 changed files with 2 additions and 1 deletions

View File

@ -473,7 +473,8 @@ function insertText(input, text) {
if (typeof checkForRequired === "function") checkForRequired();
setTimeout(() => {
input.focus();
if (document.activeElement !== input)
input.focus();
}, 200);
}