Skip to content
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

searchFn not trigger when clean search key #961

Open
0208SammyMai opened this issue Apr 20, 2023 · 2 comments
Open

searchFn not trigger when clean search key #961

0208SammyMai opened this issue Apr 20, 2023 · 2 comments

Comments

@0208SammyMai
Copy link

0208SammyMai commented Apr 20, 2023

Issue Type (delete the irrelevant ones)

version:2.21.10

What browser?
chrome

Steps to Reproduce the Problem

Please detail your steps here

  1. I seted search-options="{ enabled: true, searchFn: tableFilter }" and I hope when my search key change can trigger this hook. But found something strange.

  2. When I keydown 'backspace' to clean last char in input box, searchFn hook does not trigger.

  3. I don't know it is a bug or originally designed so.

Expected Behavior

I hope searchFn can be triggered when clean search key.

@maronkoders
Copy link

I would say, I'm having issues with the search function too. I want my search to talk to the backend. Currently, using a function defined in the search-options. Puts my server at halt, given I have updated server params and try to load items. The way we do with table events. Can someone give clarity here.

@0208SammyMai
Copy link
Author

0208SammyMai commented Oct 23, 2023

You could try setting externalQuery: searchKey and setting your own search input box,I found that this allows searchFn to be triggered when the last character is cleared.
This is just what I need, so you can try it. @maronkoders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants