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

Commit

Permalink
fix(mobile): use input event instead of autocomplete:update
Browse files Browse the repository at this point in the history
autocomplete:updated do not work on mobile
  • Loading branch information
vvo committed Apr 7, 2016
1 parent ca84721 commit 6edca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/places.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function places({
autocompleteInstance.focus();
});

autocompleteInstance.on('autocomplete:updated', () => {
autocompleteContainer.querySelector('.aa-input').addEventListener('input', () => {
const query = autocompleteInstance.val();
if (query === '') {
pin.style.display = '';
Expand Down

0 comments on commit 6edca8f

Please sign in to comment.