material-web/textfield
Elizabeth Mitchell 7dd7a68ae9 fix: forms correctly focus the first invalid control instead of last
Previously all text fields would focus themselves when the form reports validity, meaning the last one got focus. In reality, reportValidity is supposed to focus the first invalid control.

I added a "call" method wrapper around the `onReportValidity` callback that handles focusing logic.

PiperOrigin-RevId: 597904790
2024-01-12 11:43:47 -08:00
..
demo fix(textfield): error styles not removing when an unrelated control is invalid 2024-01-11 15:06:22 -08:00
internal fix: forms correctly focus the first invalid control instead of last 2024-01-12 11:43:47 -08:00
_filled-text-field.scss fix!: rename "lib" directory to "internal" 2023-07-24 12:02:59 -07:00
_outlined-text-field.scss fix!: rename "lib" directory to "internal" 2023-07-24 12:02:59 -07:00
filled-text-field_test.ts test(text-field): add token tests 2023-02-27 10:09:10 -08:00
filled-text-field.ts chore(field): reduce HCM styles and move from textfield/select to field 2023-10-31 17:33:28 -07:00
harness_test.ts chore: format files with prettier 2023-10-25 11:59:00 -07:00
harness.ts chore: format files with prettier 2023-10-25 11:59:00 -07:00
outlined-text-field_test.ts test(text-field): add token tests 2023-02-27 10:09:10 -08:00
outlined-text-field.ts chore(field): reduce HCM styles and move from textfield/select to field 2023-10-31 17:33:28 -07:00