Stop Mobile Safari from trying to auto-fill the location box
This change prevents the "No items to show" popup that obscures the first couple suggested matches.
This commit is contained in:
parent
b49433f5ff
commit
13621b6f46
5 changed files with 11 additions and 7 deletions
|
|
@ -296,7 +296,7 @@ class AutoComplete {
|
|||
|
||||
// if a click is detected on the page, generally we hide the suggestions, unless the click was within the autocomplete elements
|
||||
checkOutsideClick(e) {
|
||||
if (e.target.id === 'txtAddress') return;
|
||||
if (e.target.id === 'txtLocation') return;
|
||||
if (e.target?.parentNode?.classList.contains(this.options.containerClass)) return;
|
||||
this.hideSuggestions();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue