Open MartinGbz opened 2 weeks ago
Currently, I don't find the root cause.
Following is what I've tried.
popoverContent.onFocusOutside
and found that it's not triggered at first click.useState
to control the popover. Still not trigger at first click, and so does Popover.onOpenChange
.useDatePicker
(which is from react-aria
) to control the popover
. Another issue showing: Select the date and close the popover immediately. (Because the state.isOpen
became false
). It looks like we can't disable it.The issue looks like that when you select a date, something blocks all activities.
I think that's related to react-aria
and I am still digging it.
Describe the bug
Somehow, we need to click 2 times outside of the calendar to make it closed. On my project, I got the issue every time, but on https://shadcnui-expansions.typeart.cc/docs/datetime-picker it happened only sometimes.
The double outside click issue happen only when you choose a different value, so if you open and then click outside (without picking a value), the calendar will close. But if you open it, choose a value, then you'll need to click 2 times to make it close.
I tried to dig into the problem, without success, so that's why I'm opening this issue.
Affected component/components
DateTimePicker
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
No response
Before submitting