Closed dvlden closed 1 week ago
Temp. A fix for this is to assign tabIndex to the date picker content. That way, the pointerdown doesn't send focus to the body (which is the root cause of the close)
We'll fix that in Zag.js shortly.
I just pushed a fix for this in Zag.js. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.
Description
When I place
DatePicker
inside of aDialog
and I click on theDatePickerTrigger
the layout will render. If I select prev/next or click the trigger that should change layout view tomonth
theDatePicker
will automatically close.This weird behaviour is only in Safari, but in other browsers there's another bug that's related. Setting the min/max dates and clicking on disabled "prev/next" action or clicking anywhere near the action that changes layout view (from day to month for example) will auto close the
DatePicker
as well.This behaviour is only present when
DatePicker
is used withinDialog
. Not whenDatePicker
is used directly without component nesting.Link to Reproduction (or Detailed Explanation)
https://stackblitz.com/edit/vitejs-vite-qaltgb?file=src%2FApp.vue
Steps to Reproduce
Ark UI Version
3.13.1
Framework
Browser
Chrome, Safari
Additional Information
No response