material-web/labs
Elizabeth Mitchell 3151fd8d90 fix(textfield): error styles not removing when an unrelated control is invalid
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
2024-01-11 15:06:22 -08:00
..
badge chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
behaviors fix(textfield): error styles not removing when an unrelated control is invalid 2024-01-11 15:06:22 -08:00
card fix(labs): card content not clickable with outline fix 2023-12-20 10:20:39 -08:00
item chore: format files with prettier 2023-10-25 11:59:00 -07:00
navigationbar chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
navigationdrawer chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
navigationtab chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
segmentedbutton chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
segmentedbuttonset chore: remove un-actionable todos from labs 2023-12-27 15:49:30 -08:00
README.md feat: add labs and internal folders for non-client code 2023-05-25 13:26:26 -07:00

Labs 🚧

WARNING ⚠️ This folder contains experimental features that are not recommended for production.

Breaking changes may occur that do not bump the major version (vX.0.0).