Commit fa2687f
authored
fix(material/datepicker): always move caret to the end of the start input on backspace (#28669)
When the user presses backspace on an empty end input of a range picker, we move focus to the start input and assume that the caret will be at the end. It appears that in some cases the browser decides to move it to the beginning instead so these changes reuse the logic from the left/right arrow handling to explicitly move it to the end on backspace as well.
Fixes #28665.1 parent b169320 commit fa2687f
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
424 | 435 | | |
425 | | - | |
426 | 436 | | |
427 | 437 | | |
428 | 438 | | |
429 | 439 | | |
430 | 440 | | |
431 | | - | |
| 441 | + | |
432 | 442 | | |
433 | 443 | | |
434 | 444 | | |
| |||
438 | 448 | | |
439 | 449 | | |
440 | 450 | | |
441 | | - | |
442 | | - | |
443 | | - | |
| 451 | + | |
444 | 452 | | |
445 | 453 | | |
446 | 454 | | |
| |||
0 commit comments