You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Support for plain HTML form for mwc-textfield & other form elements: currently, placing an mwc-texfield inside a form will not make the form pick up its value.
Unlike MWC, MDC does not use shadow DOM and does not face the same challenges that custom elements do when integrating with forms. You can add a name attribute to the mdc-text-field__input element of an MDC text field to integrate it with HTML forms.
For <mwc-textfield> and other MWC custom elements, you can subscribe to material-components/material-web#289 to track form integration support (either with the formdata event or the form associated API).
Feature Request
Support for plain HTML form for mwc-textfield & other form elements: currently, placing an mwc-texfield inside a form will not make the form pick up its value.
Proposed solution
Implement formdata event:
Alternatives considered
I've considered creating a custom form WC too but it doesn't seem necessary on the long run
The text was updated successfully, but these errors were encountered: