mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
7dd7a68ae9
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 |