angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.
https://pub.dev/packages/angular_components
374 stars 123 forks source link

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

Open Antoniossss opened 4 years ago

Antoniossss commented 4 years ago

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