Proof of concept / strategy decision: Form inputs #56
damontgomery
started this conversation in
Ideas
Replies: 1 comment
-
|
We have gone down the path of form inputs in slots, but have yet to use it end-to-end. Seems OK with minimal testing. The component for Checkboxes / Radios creates its own shadow DOM markup and tries to handle typical actions to modify the slotted inputs which are not shown in the Shadow DOM. I think this makes sense for those since they are difficult to style. Interested to see how it goes end-to-end and if others have tried something else. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Notes
Form inputs work as expected (add to form data / submit form) when in slots, but do not work when in the shadow DOM without extra consideration.
Some information here: https://www.hjorthhansen.dev/shadow-dom-and-forms/
Beta Was this translation helpful? Give feedback.
All reactions