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
Live search is not activated when users use a functional subset to define choices_selected or variable_selected, even though there are more than 10 choices once the function is processed.
If it's delayed, then it's automatically set choices to NULL.
@kumamiao
Before we move into fixing mode, I want to first check whether the app is intended to show live search when users are using a functional subset. The way the code is written right now makes me think that the initial decision might have been to not show live search in this case. If so, should it stay that way or should we change this?
The text was updated successfully, but these errors were encountered:
I'm not entirely sure why 10 here, but I assume the intention may be if there are less than 10, all choices are visible and the need for search may low?
Discussed with @donyunardi, I'm okay with either setting it to TRUE so that we're consistent and transparent (otherwise user would not know what triggered the live search); or we add an additional argument in teal.widget (I personally prefer TRUE as default) that can be passed by app developer when setting the choices_selected or variable_selected. Would prefer to not touch teal.transform for this.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Live search is not activated when users use a functional subset to define choices_selected or variable_selected, even though there are more than 10 choices once the function is processed.
Example Code
Here's what it looks like:

My expectation is something like this since

choices
, after delayed process, has more than 10 values:This is because value of
choices
is NULL when this line is executed in teal.widgets:I think the reason the value is NULL is because of this line in teal.transform:
If it's delayed, then it's automatically set
choices
to NULL.@kumamiao
Before we move into fixing mode, I want to first check whether the app is intended to show live search when users are using a functional subset. The way the code is written right now makes me think that the initial decision might have been to not show live search in this case. If so, should it stay that way or should we change this?
The text was updated successfully, but these errors were encountered: