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
There seem to be a bug with shiny selectize when the user enters a string of mutliple words with common letters : part of the words or even whole words disappear in the proposed inputs.
Here's a small example, try typing "letters letters" in the following selectize input
Appears as though updating to selectize.js v0.15.2 (as we're hoping to do in R via rstudio/shiny#3875) fixes this issue. Unfortunately, we probably won't actually upgrade in R until this new regression gets addressed, but if this is urgent for Python, you could work around that issue by enabling the remove_button plugin (which IMO provides a better default experience anyway). Here's how you can opt-into that plugin in R
Activity
gshotwell commentedon Aug 3, 2023
Good catch and a very odd bug.
To reproduce on shinylive, type "let let" then backspace out, selectize drops letters and doesn't reset when you clear the search term.
gadenbuie commentedon Aug 3, 2023
I think this is common to Shiny for Python and R, I can reproduce with this small app:
Interestingly, it only affects the label, the selected value is correct but it's probably a bug in how the selection highlighting is being cleared.
gshotwell commentedon Aug 4, 2023
Thanks for the reproduction, weird that nobody has reported this on the R side.
cpsievert commentedon Aug 21, 2023
Appears as though updating to selectize.js v0.15.2 (as we're hoping to do in R via rstudio/shiny#3875) fixes this issue. Unfortunately, we probably won't actually upgrade in R until this new regression gets addressed, but if this is urgent for Python, you could work around that issue by enabling the
remove_buttonplugin (which IMO provides a better default experience anyway). Here's how you can opt-into that plugin in Rcpsievert commentedon Dec 5, 2023
This should be fixed now (in the development version) thanks to #819