Multi-select clear button click event

  • Goal: clear button click event on multiselect

I am facing the same issue as in the mentioned thread.
However in my case we are triggering that query from multiple scenarios , so if we set auto trigger, it will cause race condition .
the only possible solution is clear button click event or bubble the blur event of parent, here multi select, when clear all button is clicked .

refer Capturing events when clicking x on multiselect items - #6 by avr

Hello @Arvind,

I am a little confused by your issue. Are you looking to clear the selected options from a multiselect component?

You can do that with a button as below

The issue in the thread you linked is related to manually clicking the X on individual options inside a multiselect. Are you trying to clear the selection that way?

If you are running into race conditions, you may need to change what user events trigger the queries. I would need more information on which events are triggering which queries.

Hi @Arvind,

Just wanted to circle back and see if my recommendation was helpful.

There should be some other options for running queries around the same time and being able to clear component's states. If you can share some screenshots of the components and the queries I can better to further help if needed!