x-ref should store in x-data #4658
kernellpanic
started this conversation in
3. Feature Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with Web Components. I manage to access the x-data proxy object from my component. It would be nice to have access to those $references also in the same proxy.
Right now this is a workaround. But I'd like the delete the x-init part.
<main x-ref="dom_main" x-init="dom_main = $refs.dom_main">With alpine I'm trying to delete all my dom access code. But still there are some particular case where it's useful.
Beta Was this translation helpful? Give feedback.
All reactions