Bug: forms don't behave correctly with Lit custom elements
astagi opened this issue · 0 comments
astagi commented
React version: 19.0.0
Steps To Reproduce
- Use Lit custom element inside a form (an input and a submit button)
- Try to get the input value
Link to code example:
- Custom element implementation: https://github.com/test-wc/test-wc/tree/feature/forms
- React usage: https://github.com/test-wc/react-wc/blob/features/forms/src/App.js
The current behavior
Custom elements behave correctly in Angular, VanillaJS, Vue and React using react-hook-forms
The expected behavior
I'd like to see it working using the native form in React