Commit 46c8097
fix(datepicker): changed after checked error if focused datepicker inputs turn disabled (#9717)
In some situations, the `disable()` method of a form control is called while the datepicker input is focused. This causes a changed after checked error.
Normally, native input elements automatically blur if they turn disabled. This behavior is problematic, because it would mean that it triggers another change detection cycle, which then causes a changed after checked error if the input element was focused before.
Fixes #95591 parent df0bfdc commit 46c8097
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
0 commit comments