Commit bb6dbe8
fix(material/datepicker): Return union of view component types (#23000)
TypeScript inferred the return type of `_getCurrentViewComponent` as the type of the month view only. Tsickle propagates that to the JavaScript compiler which optimizes the code as `monthView._init` was the only method that could be called. This causes runtime errors.
Fixed #22996
(cherry picked from commit fafb24d)1 parent a9df43d commit bb6dbe8
1 file changed
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 388 | + | |
400 | 389 | | |
401 | 390 | | |
402 | 391 | | |
| |||
428 | 417 | | |
429 | 418 | | |
430 | 419 | | |
431 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
432 | 424 | | |
433 | 425 | | |
434 | 426 | | |
0 commit comments