Skip to content
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

Compability with Alpine.js #868

Closed
Briareos17 opened this issue Jun 4, 2020 · 6 comments
Closed

Compability with Alpine.js #868

Briareos17 opened this issue Jun 4, 2020 · 6 comments

Comments

@Briareos17
Copy link

Briareos17 commented Jun 4, 2020

Describe the solution you'd like
Have ability to integrate Choices with Alpine.js like Vue do.

@greenwebsas
Copy link

greenwebsas commented Jul 5, 2020

Include your select item in a div like this

x-data
x-init="new Choices($refs.int_product_id,{
renderChoiceLimit: 1,silent: false,fuseOptions: {
include: 'score'
}});"

and add on select item

x-ref="your_id"

Works also with livewire

@abishekrsrikaanth
Copy link

@greenwebsas, I am trying to get this to work with Alpine and Livewire. Would you be ok to share your code?

@greenwebsas
Copy link

Capture

@Briareos17
Copy link
Author

I have another issue when trying to use choices with livewire. When i changing value in choices select, livewire property gets {value: 1} except of simple 1

@umarsyarif
Copy link

I have another issue when trying to use choices with livewire. When i changing value in choices select, livewire property gets {value: 1} except of simple 1

I had the same problem. did you get the solution? @Briareos17

@Fak3
Copy link

Fak3 commented Oct 12, 2024

I have the same issue with alpinejs. Have anyone managed to solve this?
Reported in separate issue #1222

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

5 participants