forked from MarseyWorld/MarseyWorld
dont focus if its alrdy focused
parent
cba64ae93f
commit
ec3b94ac5d
|
@ -473,7 +473,8 @@ function insertText(input, text) {
|
|||
if (typeof checkForRequired === "function") checkForRequired();
|
||||
|
||||
setTimeout(() => {
|
||||
input.focus();
|
||||
if (document.activeElement !== input)
|
||||
input.focus();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue