Closed matt-koevort closed 1 year ago
Hi,
Thank you for the bug report. If you can check up the MRs pipelines and I can release a new version after this!
Thanks a lot!
No activity since Mars and now master changed. If you still need the feature, please update the PRs. Ensure everything is fine and create new PRs. Thanks for the contribution!
This is still an issue. I am trying to use this with Shadcn AlertDialog and the clicks don't register.
Sorry, I don't have time for this PR. You can take the code, update it following the recommendations and I would approve it 🙂
Describe the bug Rendering this component inside another that has a MouseEvent handler causes that handler to fire when the antd
Select
component's dropdown items are clicked. For ancestors like modals, this causes the modal to close as most modals would have MouseEvent handlers for closing on click outside (see codesandbox).I have created two separate PRs to address this.
onMouseDown
on antd Select components does not propagate the eventTo Reproduce Steps to reproduce the behavior:
Cron
component inside a Modal (our issue is with Sanity modal component)Expected behavior Clicking an item in a Select dropdown should not close the modal.
Screenshots If applicable, add screenshots to help explain your problem.
CodeSandbox https://codesandbox.io/s/nervous-james-uprzgq?file=/src/App.js
Versions (please complete the following information):
Additional context Add any other context about the problem here.