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

Using showSearchClearButton does not clear searchText from options #7257

Open
merinosky opened this issue Mar 30, 2024 · 1 comment
Open
Labels
Bug Issues which are marked as Bug

Comments

@merinosky
Copy link

merinosky commented Mar 30, 2024

Bootstraptable version(s) affected

1.22.4

Description

When I enter some text in the search input the value of the attribute "searchText" from the bootstrap-table optons object is populated as expected. This "searchText" attribute is the one sent to the server so I need it to be the same one that is displayed to the user.

I have a table with data-show-search-clear-button="true" and I have noticed that when I use the clear search button the value of "searchText" does not change. I can't even set it to empty myself because there isn't any event such as "onClearSearch".

Example(s)

In this example you can see how after using the clear search button the "searchText" value displayed in the alert is the old one, when it should be the "empty" value. Even after changing the selected page the "searchText" value remains with the wrong value.

https://live.bootstrap-table.com/code/merinosky/17360

Possible Solutions

No response

Additional Context

No response

@merinosky merinosky added the Bug Issues which are marked as Bug label Mar 30, 2024
@merinosky
Copy link
Author

Hello! Is this bug being fixed in future releases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

1 participant