question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add possibility to clear searchBox value using the clearAllWidget

See original GitHub issue

For 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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
bobylitocommented, Mar 20, 2017

We could introduce that as a change for a v2 of instantsearch.js?

2reactions
bobylitocommented, Jun 13, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found