Accessing/updating input fields within web component slot #10149
Unanswered
marcopixel
asked this question in
Help/Questions
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.
-
Is there a way to modify a input field within a slot reactively if it's inside a web component?
I have an custom element defined and i can get the data from within the slot via useSlots().default() but i haven't found a way to properly update the values within those input fields. The content would be rendered via PHP and would output the input fields directly - these fields would be used for getting/setting the values.
Example:
https://codesandbox.io/p/devbox/web-components-test-mmxnpj?file=%2Findex.html%3A18%2C1
Beta Was this translation helpful? Give feedback.
All reactions