-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear search does not fire onSearch and does not clear the filter #440
Comments
Have you solved the problem, that would be very useful ? I have the same problem, would it be possible to implement an onClearSearch function for an event when on clear search. |
No, unfortunately not yet |
If it helps, after studying the component, I found a solution. Unfortunately, I couldn't find any other way to do it, it's a "workaround", so there is a way to rewrite a function with javascript. So I rewrote the _onSearchbarClear() function:
I hope I've been able to help you solve your problem. (it's best to write the code I sent you in the 'ngAfterViewInit()' angular lifecycle) |
@TheSakyo THX, I'll give it a try and report back |
I noticed this same issue today on my app, but @TheSakyo 's workaround was not working for me. So instead I used patch-package and added the line Until this bug is properly fixed on this repository, if anyone would like to use the same patch I made, you can download the patch file here: ionic-selectable+5.0.3.patch In order to use it, create a folder named |
Thanks @Lucasrsv1, I'll try that too. Unfortunately, @TheSakyo's solution didn't work for me either. Hopefully this will be solved directly by the component in the medium term. |
Hi, clear search does not fire onSearch event and does not show the complete selectable list again.
I have to type character and delete it again to see to complete list, see video.
THX!
ionic-selectable_error.mov
The text was updated successfully, but these errors were encountered: