You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onClickCapture is not working as expected in mobile devices. On desktop it is fired as expected whereas in mobile only onClick is being fired.
🤔 Expected Behavior?
onClickCapture works same as in desktop in mobile
😯 Current Behavior
onClickCapture doesnt get fired in mobile, it is being fired only in desktop.
Also in desktop it is actually fired after onClick which is the wrong order.
💁 Possible Solution
No response
🔦 Context
We have a popper which works by passing a onClickCapture fn to its child. But in some places the children of its children have onClick with stop propagation. So we cannot use onClick and need to rely on onClickCapture to trigger the opening of popper.
We are currently in between migrating to react aria components and need this to work.
If you want to install a version, you'll probably have to wait until the PR gets merged and for a nightly to build. Otherwise, you can pull the PR down locally and add what stories you need to the storybook to see if the issue still occurs in the PR.
Provide a general summary of the issue here
onClickCapture is not working as expected in mobile devices. On desktop it is fired as expected whereas in mobile only onClick is being fired.
🤔 Expected Behavior?
onClickCapture works same as in desktop in mobile
😯 Current Behavior
onClickCapture doesnt get fired in mobile, it is being fired only in desktop.
Also in desktop it is actually fired after onClick which is the wrong order.
💁 Possible Solution
No response
🔦 Context
We have a popper which works by passing a onClickCapture fn to its child. But in some places the children of its children have onClick with stop propagation. So we cannot use onClick and need to rely on onClickCapture to trigger the opening of popper.
We are currently in between migrating to react aria components and need this to work.
🖥️ Steps to Reproduce
https://stackblitz.com/edit/stackblitz-starters-6x7elqdy
Version
"react-aria": "^3.36.0"
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
Ubuntu
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: