mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
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 |
||
---|---|---|
.. | ||
demo | ||
internal | ||
_filled-text-field.scss | ||
_outlined-text-field.scss | ||
filled-text-field_test.ts | ||
filled-text-field.ts | ||
harness_test.ts | ||
harness.ts | ||
outlined-text-field_test.ts | ||
outlined-text-field.ts |