When the Datepicker is open, clicking anywhere within the headlessUI modal will not close it. If you however, click outside of the headlessUI modal, the Datepicker will close. Not sure if this bug is on Headless's side, Mobiscroll's side, or in our own code. We don't have any special handlers that should be intercepting the clicks.
Maybe worth mentioning the same functionality occurs with the Timepicker.
Also pressing Enter as well as Escape will successfully close the date selector.
I have a HeadlessUI Dialog with a
import { Datepicker } from '@mobiscroll/react'
within it:When the Datepicker is open, clicking anywhere within the headlessUI modal will not close it. If you however, click outside of the headlessUI modal, the Datepicker will close. Not sure if this bug is on Headless's side, Mobiscroll's side, or in our own code. We don't have any special handlers that should be intercepting the clicks.
Maybe worth mentioning the same functionality occurs with the Timepicker.
Also pressing Enter as well as Escape will successfully close the date selector.