Replies: 5 comments 11 replies
-
|
The problem is solved. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, but to my mind, that's a workaround. Alpine's handing of If the If the See the demo page below. Both selects should have the 'Red' option selected. The first This feels like a defect to me, given that the behaviour is just not what you would expect, but I'll see what other people think ... |
Beta Was this translation helpful? Give feedback.
-
|
For anyone struggling with cascading selects not updating x-model, here is a "set and forget" solution. It uses a custom directive to watch for DOM changes in the options and forces a refresh. |
Beta Was this translation helpful? Give feedback.
-
|
Triggering change doesn't solve the problem when x-for is used. Here is correctly working solution: |
Beta Was this translation helpful? Give feedback.
-
|
i wonder what case u solve problem using by that code. in my case, ur code is not working.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you set dynamic parameters, the preset values do not work.
"Orange" is output, but "Red" is specified in Select
How do I make it work? Or does Alpine JS not support this?
Beta Was this translation helpful? Give feedback.
All reactions