Replies: 1 comment
-
Which version of Livewire? I suspect the latest releases are only compatible with Livewire 3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When dynamically creating elements in a Livewire 2.x component, I encountered an issue where
x-model
bindings in Alpine.js are not functioning as expected. Specifically, the data binding between Livewire and Alpine.js does not work on the newly added elements, even though the DOM is properly updated.This was working correctly up until version 3.13.
2024-12-03.10.24.57.mov
Potential Workarounds:
I tried reinitializing Alpine.js using Alpine.initTree() after the Livewire update, but the issue persists. This suggests a deeper integration issue between Livewire and Alpine.js.
Any guidance or suggestions would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions