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
I'm not sure if something's changed recently, but my flux:selects with variant="listbox" no longer highlight an option when I start typing the matching first character(s) of an option.
I'm running Flux 1.0.23 after running php artisan view:clear with NO published Flux components.
e.g.: (using code samples from docs)
first (native) select acts as expected and highlights Legal services if I type L
2nd variant="listbox" doesn't highlight anything when focused and I start typing
3rd variant="combobox" acts as expected (using .includes() so I can search in middle of options as well)
The text was updated successfully, but these errors were encountered:
jeffchown
changed the title
select listbox variant not searching options when focused
select listbox variant not searching options when typing
Nov 13, 2024
UPDATE: @calebporzio@joshhanley I assume this has something to do with the issue - via devtools, I see that all flux:options for both the listbox and combobox have a leading and trailing space (not sure why) which would affect the .startsWith() search in listbox
Hmmm that's odd - I don't see an implementation for this in the source code at all. Only for the menu component.
Anyhow, I added it in and made the search "running" with a 300ms debounce for both this and the menu component as well while we were at it so that it mirrors native select behavior as best as possible.
I'm not sure if something's changed recently, but my
flux:select
s withvariant="listbox"
no longer highlight an option when I start typing the matching first character(s) of an option.I'm running Flux 1.0.23 after running
php artisan view:clear
with NO published Flux components.e.g.: (using code samples from docs)
Legal services
if I typeL
variant="listbox"
doesn't highlight anything when focused and I start typingvariant="combobox"
acts as expected (using .includes() so I can search in middle of options as well)The text was updated successfully, but these errors were encountered: