Commit 3e53cf4
Fix keyboard focus loss during same-month navigation in inline mode
When using selectsRange, inline, and showPreviousMonths with a
mismatched openToDate vs startDate, keyboard navigation within the
same month would fail to properly transfer focus to the new day
element.
The root cause was that shouldFocusDayInline was set to false when
navigating within the same month, which prevented the Day component
from receiving focus. Since keyboard navigation is always user-
initiated from a focused day, the destination day should always
receive focus.
This change simplifies the inline mode focus logic to always set
shouldFocusDayInline to true during keyboard navigation, ensuring
focus is properly transferred regardless of whether the month changed.
Fixes #5750
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 877403c commit 3e53cf4
2 files changed
+56
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
1395 | | - | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
1396 | 1399 | | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
| 1400 | + | |
1409 | 1401 | | |
1410 | 1402 | | |
1411 | 1403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3851 | 3851 | | |
3852 | 3852 | | |
3853 | 3853 | | |
3854 | | - | |
| 3854 | + | |
3855 | 3855 | | |
3856 | 3856 | | |
3857 | 3857 | | |
| |||
3867 | 3867 | | |
3868 | 3868 | | |
3869 | 3869 | | |
3870 | | - | |
| 3870 | + | |
| 3871 | + | |
3871 | 3872 | | |
3872 | 3873 | | |
3873 | 3874 | | |
| |||
3907 | 3908 | | |
3908 | 3909 | | |
3909 | 3910 | | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
3910 | 3959 | | |
3911 | 3960 | | |
3912 | 3961 | | |
| |||
0 commit comments