This commit is contained in:
2026-05-29 08:59:01 +02:00
parent d5f118f2fc
commit 5e298383a3

View File

@@ -76,8 +76,8 @@ window.TagAutocomplete = (() => {
dropdown.addEventListener('touchstart', () => { dropdownTouching = true; }, { passive: true }); dropdown.addEventListener('touchstart', () => { dropdownTouching = true; }, { passive: true });
dropdown.addEventListener('touchend', () => { dropdown.addEventListener('touchend', () => {
dropdownTouching = false; dropdownTouching = false;
// Re-focus input so user can keep typing after scrolling // Note: do NOT re-focus input here — that would reopen the mobile keyboard.
input.focus(); // The keyboard only comes back when the user explicitly taps the input.
}, { passive: true }); }, { passive: true });
dropdown.addEventListener('touchcancel', () => { dropdownTouching = false; }, { passive: true }); dropdown.addEventListener('touchcancel', () => { dropdownTouching = false; }, { passive: true });