You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now the value in filterText is cleared after a selection but it can be usefull, expecially in multi-selection mode, to not clear the current filter so users can select multiple items from list without the need of re-typing the filter.
I propose to add a new prop, similar to clearFilterTextOnBlur, to determine if clearing or not the value in filterText when a selection happens.
In this moment the clearing of the filter happen in L493
I think it is enough to add a check at this point in the code based on a "prop" to determine the desired behavior.
Similar to how it is already done during blur event.
Right now, I'm working around this issues by binding filterText and automatically set the previous value when the library try to clear it. But it's not a clean solution because it triggers multiple changes to the underling list and a flickering of the items in the list.
If you want I can open a PR for this.
The text was updated successfully, but these errors were encountered:
Hi,
right now the value in
filterText
is cleared after a selection but it can be usefull, expecially in multi-selection mode, to not clear the current filter so users can select multiple items from list without the need of re-typing the filter.I propose to add a new prop, similar to
clearFilterTextOnBlur
, to determine if clearing or not the value infilterText
when a selection happens.In this moment the clearing of the filter happen in L493
svelte-select/src/lib/Select.svelte
Line 493 in 244e5bb
I think it is enough to add a check at this point in the code based on a "prop" to determine the desired behavior.
Similar to how it is already done during blur event.
Right now, I'm working around this issues by binding
filterText
and automatically set the previous value when the library try to clear it. But it's not a clean solution because it triggers multiple changes to the underling list and a flickering of the items in the list.If you want I can open a PR for this.
The text was updated successfully, but these errors were encountered: