Add possibility to clear searchBox value using the clearAllWidget
See original GitHub issueFor now the clearAll widget only allows to clear facet refinements, but not the search query itself. Would be great to have a way that enables it, either:
- by having an new option in the widget configuration, and say true|false
- letting define a hook function that would be called once the user has clicked and in which we could call
search.helper.setQuery('').search()
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:9 (8 by maintainers)
Top Results From Across the Web
ClearAll widget? - Open Q&A - Algolia Community
I need a button to clear all refinements, Geosearch and Searchbox query at the same time. ... But I can add “query” in...
Read more >Reset Search Text Box - Power Platform Community - Microsoft
Solved: I have a search text box where I added and X icon that changes visibility depending on the text in the search...
Read more >How do I clear a search box with an 'x' in bootstrap 3?
To get something like this. input with clear button. with Bootstrap 3 and Jquery use the following HTML code: <div class="btn-group"> <input ...
Read more >HTML | Clearing the input field - GeeksforGeeks
To clear the entire input field without having to delete the whole thing manually Or ... Set the onfocus attribute to NULL using...
Read more >aria-autocomplete - Accessibility - MDN Web Docs - Mozilla
The aria-autocomplete property describes the type of autocompletion interaction model a textbox, searchbox, or combobox will use when ...
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
We could introduce that as a change for a v2 of instantsearch.js?
Hi @WinstonGFX, this will be possible in v2, which is already in beta. Check out the new doc: https://community.algolia.com/instantsearch.js/v2