utily / smoothly

Web component library written with Stencil.
https://payfunc.com/open-source/smoothly
MIT License
1 stars 5 forks source link

Fix input-select bug for multiple and singe using Enter key #781

Closed Magnus93 closed 1 month ago

Magnus93 commented 1 month ago

<select multiple> was adding the item twice. <select> (single) was not adding the item at all.

Turns out the bug in both was caused by the same issue. When selecting with Enter, the item was selected twice. In the single select this mean that is was selected and and deselected.

Bug (before)

Screencast from 2024-07-23 14:20:45.webm