Skip to content

Resolves IE11 iframe Bug#911

Open
huebs wants to merge 1 commit into
dimsemenov:masterfrom
huebs:fix-ie11-bug
Open

Resolves IE11 iframe Bug#911
huebs wants to merge 1 commit into
dimsemenov:masterfrom
huebs:fix-ie11-bug

Conversation

@huebs

@huebs huebs commented Oct 6, 2016

Copy link
Copy Markdown

I've run into an Internet Explorer bug when using the library within an iframe. An error is thrown and code execution stops on this line:

mfp._lastFocusedEl = document.activeElement;

I found this blog post which talks about a similar issue present in IE 9 (but claims it is not present in IE 10). To be clear: I've only confirmed that the bug is present in IE 11 and that this change fixes it, I have not tested IE 9 or 10.

@ghost

ghost commented Apr 13, 2017

Copy link
Copy Markdown

Hey, thanks for the PR -

I can't replicate the document.activeElement bug in IE11, it may of been possible you were viewing the website in compatibility mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant