Re: [WICG/webcomponents] Form-associated custom elements: being a submit button (#814)

Yeah creating a "proxy" button in the light dom is the approach I've been using. But it's definitely hacky. And still not perfect, since you get a seemingly incorrect element (of course it's technically correct, but for a dev using your custom button it seems wrong) for `event.submitter` on a form's submit event.

I personally leave the proxy button in the light DOM always, so that hitting enter in a text input will work. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/814#issuecomment-1218457169
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/814/1218457169@github.com>

Received on Wednesday, 17 August 2022 20:25:41 UTC