svelte-select icon indicating copy to clipboard operation
svelte-select copied to clipboard

Select items on group search

Open pascal-kuschkowitz opened this issue 2 years ago • 3 comments

Is it possible to select items on group search with v5?

In this svelte Repl v4, the search behavior works for everything except grouped items. I.e. the searched item is not selected when pressing enter (when searching for 'Chocolate' in the complex select-field and then pressing enter, the item is selected, but when doing the same in the group select-field the item is not getting selected.

pascal-kuschkowitz avatar May 04 '22 15:05 pascal-kuschkowitz

CleanShot 2022-05-05 at 09 18 16

It seems to me that is has something to do with the isGroupHeaderSelectable setting as seen in the example. When searching the isGroupHeaderSelectable probably doesn't get checked correctly so that the header is selected internally instead of the first item.

Here's the REPL: https://svelte.dev/repl/4755fdc2817045fe99f0845140a64f30?version=3.20.1

b3ngg avatar May 05 '22 07:05 b3ngg

Should be fixed in latest beta?

https://svelte.dev/repl/242d533350d141f3b982e8ebeb229c53?version=3.49.0

rob-balfre avatar Aug 11 '22 03:08 rob-balfre

Not really when searching “ice“ in the first input field and hitting enter nothing happens, although you would expect to select the “Ice Cream“ item.

I got it fixed locally. I can do a PR.

b3ngg avatar Aug 11 '22 10:08 b3ngg

Should be all fixed in 5.0.0-beta.23 (reopen if not)

https://svelte.dev/repl/242d533350d141f3b982e8ebeb229c53?version=3.49.0

rob-balfre avatar Sep 15 '22 22:09 rob-balfre