open-wc / form-participation

Helper, mixins, tools, and more for supporting your custom elements in participating in an ancestor form.
MIT License
53 stars 7 forks source link

Generated events require "bubbles" prop for event delegation #35

Closed Esoterrous closed 1 year ago

Esoterrous commented 1 year ago

Looks like starting in React 17 generated events require the bubbles prop to be set for proper handling.

https://reactjs.org/blog/2020/08/10/react-v17-rc.html#changes-to-event-delegation Reference discovered in this stack post https://stackoverflow.com/questions/51026510/react-ref-form-onsubmit-handler-not-triggered/66659749#66659749

I came across this while investigating issues I was having with form submission event handling when triggered by child web components with