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

> @mfreed7 right, that's still the proposed API. The additional case discussed in the thread that I think has merit is supporting implicit submission better. There's no way currently to a submit a form using its default submit button and as @clshortfuse and I have shown the code for that is somewhat error-prone to write.
> 
> And then finally I suggested that maybe we should have a getter that returns the default submit button of a form.
> 
> Perhaps that getter and `requestSubmit()` could also suffice as supporting implicit submission.

Thanks. I like the idea of keeping the changes to the minimum set that meets the use case, if possible. Would just `form.defaultSubmitButton` be enough? Then `form.defaultSubmitButton.click()` is enough to submit it, right?

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

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

Received on Friday, 24 February 2023 19:23:36 UTC