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
is it possible to pre-select a value on mount without the dropdown showing?
I'm binding a value variable to the component which I set to an item from the data array on mount. The value shows up in the search box (good!), but unfortunately the dropdown is open as well, showing exactly one result (not so good!):
Is there any way to prevent this from happening?
// rough code:
let value = 'UNITED STATES';
...
<Typeahead autoselect data={countries} {extract} bind:value />
The text was updated successfully, but these errors were encountered:
Set showDropdownOnFocus to true for the results dropdown to only be shown if the search input is focused. I believe this addresses your use case where an initial value is desired without obtrusively showing the dropdown.
Hi all,
is it possible to pre-select a value on mount without the dropdown showing?
I'm binding a
value
variable to the component which I set to an item from thedata
array on mount. The value shows up in the search box (good!), but unfortunately the dropdown is open as well, showing exactly one result (not so good!):Is there any way to prevent this from happening?
The text was updated successfully, but these errors were encountered: