#1501 addInputListeners - FIX for github

This commit is contained in:
GrzegorzZajac000 2024-02-14 12:23:38 +01:00
parent 1aab30e921
commit f366a693fe

View File

@ -29,7 +29,11 @@ const addInputListener = (elements, tabID) => {
elements.map(input => {
if (input?.dataset?.twofasInputListener === 'true' && input?.dataset.twofasInput) {
return false;
if (input === document.activeElement || input.matches(':focus')) {
return func({ target: input });
} else {
return false;
}
}
return updateEventListener(input, func);