Skip to content

Livewire integration (PHP) #1293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Elielito opened this issue Mar 28, 2025 · 0 comments
Open

Livewire integration (PHP) #1293

Elielito opened this issue Mar 28, 2025 · 0 comments

Comments

@Elielito
Copy link

When using multiple-select with Choices.js, there is an issue with Livewire (PHP) if the wire:model attribute is set on the element. Livewire checks the event, checking, among other things, whether it's a CustomEvent and also the data property on the event. Depending on its value, it performs one action or another.

This is a very common problem when two or more libraries use the default event types for their operations.

I recommend using the default events as Event and not CustomEvent. It's better to create custom events with different type properties so that Choices can be adaptable.

I hope you change this as soon as possible because it's cumbersome to work with Choices and Livewire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant