Closed levibaldelomar closed 1 year ago
I've revamped the custom select component in v8 of the package, which was released today. A lot of the JS powering it is based on the Listbox component from Alpine Headless UI.
I'm hoping this still isn't an issue as I haven't noticed it myself yet. Feel free to re-open this if it's still happening in v8.
Laravel Form Components Version
v7.1
Laravel Version
v9.5.1
Alpine Version
v3.0.6
Bug description
When I use the custom-select component with "multiple" property, the component has a bad behavior when multiple options are selected quickly.
In the php:
In the blade file:
As result, the input toggles the first selected option indefinitely.
Plus, sometimes the option selected shows the ID instead of the NAME.
I tried to solve using "closeOnSelect" and "wire:model.lazy", but the custom-input behaviour is still weird:
when I select several options and I clicked on each item to delete them, then the id is displayed instead of the name.
I would appreciate any help.
Thanks!
Steps to reproduce
Relevant log output
No response