x-on:click not working without an x-data on el or parent el. #3805
-
I have been wracking my brain all day trying to figure out why my app I am building using htmx and the
So I set out to get a minimal reproduction and I have one here: https://codepen.io/joshmanders/pen/rNoRZOG?editors=1011 As you can see nothing on the page except two buttons and the script tag. The first button uses Is this a bug or do I not realize that a root |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
It's in the docs. x-data defines the scope of an Alpine component. Anything not inside x-data (except x init as an exception) is not checked as being Alpine. |
Beta Was this translation helpful? Give feedback.
It's in the docs.
x-data defines the scope of an Alpine component.
Anything not inside x-data (except x init as an exception) is not checked as being Alpine.