Skip to content
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

iframe support for click away #2210

Merged
merged 3 commits into from Nov 19, 2015
Merged

Conversation

chrismcv
Copy link
Contributor

If you click on an iframe (or iframe content) then the popover etc, wasn't firing clickaway as it should have.

@@ -106,6 +105,7 @@ const RenderToLayer = React.createClass({

_bindClickAway() {
this.canClickAway = true;
Events.on(window, 'blur', this._checkClickAway);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to check for the blur event? What about the focus?

@chrismcv
Copy link
Contributor Author

focus works too. Also added another fix for nested popovers

@oliviertassinari
Copy link
Member

@chrismcv I don't really know how to test this. I'm gonna trust you since you made this component.
Thanks

oliviertassinari added a commit that referenced this pull request Nov 19, 2015
[RenderToLayer] iframe support for click away
@oliviertassinari oliviertassinari merged commit fdaec58 into mui:master Nov 19, 2015
@chrismcv chrismcv deleted the r2l-iframe branch February 1, 2016 21:13
@zannager zannager added the component: ClickAwayListener The React component label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ClickAwayListener The React component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants