Replies: 1 comment 6 replies
-
The x-init by itself will create another component scope, so you either should move the x-init to same element as x-data or use alternative strategy for the outer component to access inner component’s element. Here is codepen to demonstrate the x-init creating another component scope: https://codepen.io/danddanddand/pen/eYvaGJY |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've copied the ref demo from the docs, when I add an x-init attribute the ref seems to no longer get set.
Codepen: https://codepen.io/crohlfs/pen/GRWaWmr
Beta Was this translation helpful? Give feedback.
All reactions