mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
3151fd8d90
The bug: given a form with two required text fields, 1. Try to submit the form, both fields show error. 2. Add a value to the first field. 3. Try to submit the form, the first field does not remove its error. This is fixed by listening to form submits and clearing the error state if the control is valid. I refactored `injectFormReportValidityHooks()` into `addFormReportValidListener()` to keep the `OnReportValidity` class cleaner and better identify the problem we're trying to solve. PiperOrigin-RevId: 597664564 |
||
---|---|---|
.. | ||
demo.ts | ||
project.json | ||
stories.ts |