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

Firefox - renderToParent - focus does not work #36

Closed
bluepnume opened this issue Sep 12, 2016 · 1 comment
Closed

Firefox - renderToParent - focus does not work #36

bluepnume opened this issue Sep 12, 2016 · 1 comment
Labels

Comments

@bluepnume
Copy link
Collaborator

bluepnume commented Sep 12, 2016

Calling .focus() does not work from a different frame, in Firefox. Mainly relevant for .renderToParent() cases.

The problem is (I believe) that the focus call is happening asynchronously after the button click, since there's a post message being sent to do the focus.

Somehow this isn't an issue in other browsers. Go figure.

Could potentially fix this by getting a handle on the window. But that isn't easy in IE -- using the var win = window.open('', winName); trick doesn't work particularly well cross-domain.

Would rather not do this with if (isFirefox()) { ... }...

@bluepnume bluepnume added the bug label Sep 12, 2016
@bluepnume
Copy link
Collaborator Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant