Ability to clear input after selected
See original GitHub issueHi There,
With the events supplied, I am unable to clear the input field once the user has selected the option:
...
model="new_material"
...
and in the event:
events:{
'autocomplete-myautocomplete:selected': function(data){
console.log(data);
this.new_material=''; //does not clear the input field
}
},
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Clear value from input field when select value from dropdown list
This will clear the input field when the dropdown selection changes: $("#group_psoft").on("change", function(){ $("#name").val(""); });
Read more >HTML | Clearing the input field - GeeksforGeeks
To clear the entire input field without having to delete the whole ... After: Method 2: Clearing Input with the help of button....
Read more >Solved: Text input will clear after user change selected o...
When the user change the combobox for example from small to medium the input box will reset or clear everytime the user changes...
Read more >How To Clear Input Field on Focus - W3Schools
Learn how to clear an input field on focus. Click on the input field to clear it: Clear Input Field on Focus. Example....
Read more ><input type="reset"> - HTML: HyperText Markup Language
Try entering some text into the text field, and then pressing the reset button. Adding a reset keyboard shortcut. To add a keyboard...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @kreierson @roarkmccolgan. Please review my last commit~ 😁 Hope it will work well~
Works great! Thanks a lot for adding that feature! I would say this issue is fixed! I appreciate your work on this.