-
Notifications
You must be signed in to change notification settings - Fork 182
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
updateSearch does not update selectize inputs in factor columns #633
Comments
Based on my tests, it seems that while updateSearch updates the array that filters data in the given column, it does not update the selectize itself. That keeps the previously entered values. |
I'm also experiencing this issue. It's not critical, but it makes working with updateSearch a bit ugly, as the user has to manually clear the filter and then start over. Here's some screenshots from @raisjo 's test case. The tooltip is also missing with the version created via updateSearch, whereas selecting them manually gives the desired result. |
I am raving the same problem.
I would expect to see only options that are available after start filtering no always all of them. |
This is even more confusing when the button resets the filters, as then when the user clicks into one it looks like the filter is still there. Any workaround for this? I've tried to just redraw the table with |
FWIW, I found the solution in this SO post to be useful: https://stackoverflow.com/a/57438490/4425601 |
Is this still an issue? I tried the examples provided here before opening #1110 which is very similar, but was unable to reproduce the problem with factor columns. |
Hi, there seems to be some bug when using updateSearch to update column search on factor columns. While the table is filtered correctly, when clicking into the selectize search field, selected values are not shown in the field.
On the other hand, when adding the filter at the moment of re-rendering the table via searchCols = list() option, it seems the search selectize works correctly and as expected.
Below is an example that reproduces this behavior. You can see this behavior when clicking on the click me button and using the column names search field selectize.
Any idea what to do to fix this?
The text was updated successfully, but these errors were encountered: