svelecte
svelecte copied to clipboard
Show current selection in the list when dropdown is re-opened
Another unusual behavior IMHO:
- Select an item (e.g. Greece on the demo page (Country as Options)
- Click the select again to let the dropdown list open
- Start scrolling down the list BUT DO NOT select anything this time!
- Click outside to let the dropdown closed
- Click the select again to let the dropdown list open
- Previous scroll is remembered (instead current selected value)
In step5 I think the list should rather show the current selection (value) highlighted. Only if not option multiple of course.
This would be very important in my project, because I'm trying to replace my app's old select component to Svelecte with as little difference as possible.
Thank you!
Added. Hopefully I haven't missed any (unknown) edge case. If you like svelecte, you can show your appreciation by some donation.
Unfortunately this doesn't work in my test: REPL
Actually, it went worse, I see some rendering problems:
It's getting messy 😁 I noticed you are using virtualList
which won't scroll properly.
It's weird, that it worked for normal dropdown yesterday... but is "off" now (only the 'active dropdown item' is set correctly).
Will need more work I have no time for right now 🫤
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 3 days.