Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 6edca8f

Browse files
author
vvo
committed
fix(mobile): use input event instead of autocomplete:update
autocomplete:updated do not work on mobile
1 parent ca84721 commit 6edca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/places.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function places({
9494
autocompleteInstance.focus();
9595
});
9696

97-
autocompleteInstance.on('autocomplete:updated', () => {
97+
autocompleteContainer.querySelector('.aa-input').addEventListener('input', () => {
9898
const query = autocompleteInstance.val();
9999
if (query === '') {
100100
pin.style.display = '';

0 commit comments

Comments
 (0)