angulardart/angular_components

material-dropdown-select changes its state to touched on focus instead of on blur

Antoniossss opened this issue · 0 comments

For example,

material-input component changes its state to touched when input looses the focus. This is also a condition to display error message (actually it must be diry + touched).

material-dropdown-select on the other hand changes its state to touched when user clicks dropdown button - and with additional logic - causing error to appear prematurely.

I would expect this behavior to be consistent across all form components.

Here is reproduceable example

https://github.com/Antoniossss/dart-material-bad-focus