-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Provide your feedback here.
It's convert from discussions #5702
Just like clicking outside a dialog would effectively close it. So should RangeCalendar, for UX of my.
If it works as design, I would like to know why. Thanks.
Screen.Recording.2024-01-16.at.10.47.17.PM.mov
The running code is an example from docs
And code of the behavior is here
react-spectrum/packages/@react-aria/calendar/src/useRangeCalendar.ts
Lines 66 to 71 in 4ae2831
// Also stop range selection on blur, e.g. tabbing away from the calendar. | |
res.calendarProps.onBlur = e => { | |
if ((!e.relatedTarget || !ref.current.contains(e.relatedTarget)) && state.anchorDate) { | |
state.selectFocusedDate(); | |
} | |
}; |
BTW, I filed another discussion #5703 which might somehow related to this one.
🔦 Context
No response
💻 Code Sample
No response
Version
react-aria 3.31.0
What browsers are you seeing the problem on?
No response
If other, please specify
No response
What operating system are you using?
No response