diff --git a/android/app/src/main/assets/public/main.js b/android/app/src/main/assets/public/main.js index 4bcaa9e1..e9b48c31 100644 --- a/android/app/src/main/assets/public/main.js +++ b/android/app/src/main/assets/public/main.js @@ -1729,7 +1729,7 @@ document.addEventListener('touchend', e => { if (!touchMoved) { if (activeTouchButton.tagName !== 'INPUT' && activeTouchButton.tagName !== 'TEXTAREA') { - if (document.activeElement && document.activeElement.tagName === 'INPUT' && document.activeElement.tagName === 'TEXTAREA') { + if (document.activeElement && (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA')) { document.activeElement.blur(); } diff --git a/webroot/main.js b/webroot/main.js index 4bcaa9e1..e9b48c31 100644 --- a/webroot/main.js +++ b/webroot/main.js @@ -1729,7 +1729,7 @@ document.addEventListener('touchend', e => { if (!touchMoved) { if (activeTouchButton.tagName !== 'INPUT' && activeTouchButton.tagName !== 'TEXTAREA') { - if (document.activeElement && document.activeElement.tagName === 'INPUT' && document.activeElement.tagName === 'TEXTAREA') { + if (document.activeElement && (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA')) { document.activeElement.blur(); }