We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, is there any way to access the selected value after the autocomplete value was selected (clicked or via keyboard-navigation)?
The text was updated successfully, but these errors were encountered:
Input: add event onAutocompleteSelect. You can define this event wi…
onAutocompleteSelect
7428c7c
…th an attribute `data-on-autocomplete-select`. The event receives a one argument - selected value., issu #1615
Currently, you can use the change event
change
$(input).on(Metro.events.change, function(){ console.log(this.value); })
In 4.4.0, you can use event onAutocompleteSelect
<input id="autocomplete" type="text" data-role="input" data-autocomplete="Ukraine, USA, Canada, Marokko, Singapur"> <script> $("#autocomplete").on("autocomplete-select", function(e){ console.log(e.detail.value); }) </script>
Sorry, something went wrong.
Thanks for adding it to v 4.4.0 as well as your help!
4ee936b
No branches or pull requests
Hey,
is there any way to access the selected value after the autocomplete value was selected (clicked or via keyboard-navigation)?
The text was updated successfully, but these errors were encountered: