kws3media / ui

MIT License
7 stars 2 forks source link

`searchable select` & `multi select` unique item ui doesn't doesn't darken prior to pressing enter. #173

Open soyef-bit opened 1 year ago

soyef-bit commented 1 year ago

Both in the live & new version, the async versions of searchable select & multi select don't show that an item is selected when an unique item is typed.

for example, when 'blackb' is typed, the only possible match is displayed and enter selects it, but the ui doesn't show that it was selected (doesn't darken) prior to pressing enter.

Screenshot 2023-11-15 at 3 42 41 pm

ekhaled commented 1 year ago

@soyef-bit you forgot to mention the original issue.

When the page first loads, balckberry is selected, you type black it does not show Blackberry as checked. If you clear input and select balckberry again... then type black it will show Blackberry as checked.

soyef-bit commented 1 year ago

@ekhaled ok this is in addition to my issue. My issue happens regardless whether it is Apple or Blackberry.

for example, typing 'empo' will show the 'emporia' item in dark in 'searchable select', but will not darken in async version.

I believe this is something to do with the delay with async and the conditions for showing a perfect match.