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

@domenic Quick question:  What if we, instead of adding a `submitButton: boolean` property, we added a `type: string` property, which would accept one of the already existing form control element `type`s;  E.g., 'submit', 'reset', 'select-one', etc..  - This approach would allow for any of the existing form control functionalities to be injected into the `ElementInternals` interface (as required) allowing component authors to just set `this.#internals.type` in order to switch on which ever available functionality they require, no?

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

Received on Monday, 28 June 2021 13:01:54 UTC