-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: OverflowMenu does not close when clicking on an element inside of an <iframe> #11363
Comments
@vmukhachev I think for this you'll need to wrap the OverflowMenu and iFrame in a common ancestor/parent and listen for click events. This click event could then be used to provide the proper value to OverflowMenu's Would this work for your use case? In case the codesandbox has issues, I replicated this into stackblitz for further testing https://stackblitz.com/edit/github-4nannp?file=src%2FApp.jsx |
One option could be to look into listening to |
@tay1orjones, thanks! I have written a similar workaround by listening for the blur on window I think, current OverflowMenu has the code doing something similar: |
) * chore(skeleton): update skeleton stories to sb v7 * chore(storybook): remove unused var --------- Co-authored-by: kennylam <[email protected]>
Package
@carbon/react
Browser
Chrome
Package version
17.0.2
React version
17.0.2
Description
see the title
CodeSandbox example
https://codesandbox.io/s/reverent-frog-jydl1q?file=/src/App.js
Steps to reproduce
Code of Conduct
The text was updated successfully, but these errors were encountered: