When using a mobile phone and clicking on a date in the useDatePicker's calendar, the click goes through to the underlying element.
๐ค Expected Behavior?
I expect that a click on a date will not activate an element which lies under the calendar.
๐ฏ Current Behavior
Clicking a date on mobile phones will activate any elements that lie under the calendar. If this is e.g. a link, then suddenly you navigate to a different page. It should be mentioned that this happens also when the date picker is not portalled.
Why does this happen and can it be fixed? Or is there a possible workaround for users of the library?
I also belive that this happens for the useComboBox/useListBox as well.
๐ฆ Context
I am trying to create an accessible date picker for a large group of users.
๐ Bug Report
Provide a general summary of the issue here
When using a mobile phone and clicking on a date in the
useDatePicker'
s calendar, the click goes through to the underlying element.๐ค Expected Behavior?
I expect that a click on a date will not activate an element which lies under the calendar.
๐ฏ Current Behavior
Clicking a date on mobile phones will activate any elements that lie under the calendar. If this is e.g. a link, then suddenly you navigate to a different page. It should be mentioned that this happens also when the date picker is not portalled.
Attaching a screen recording to illustrate the problem: https://github.com/adobe/react-spectrum/assets/15145686/2b3c3e96-31e7-4ac3-8a25-a900f430a838
๐ Possible Solution
Why does this happen and can it be fixed? Or is there a possible workaround for users of the library? I also belive that this happens for the
useComboBox
/useListBox
as well.๐ฆ Context
I am trying to create an accessible date picker for a large group of users.
๐ฅ๏ธ Steps to Reproduce
between the DatePicker and the DateRangePicker
Version
3.27.0 (and 3.21.0)
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge, Other
If other, please specify.
No response
What operating system are you using?
Android, iPhone, MacOS
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response