Skip to content

Commit 970d18d

Browse files
committed
test(browser/focusable): in IE11 not everything has a blur method
1 parent 0318fe3 commit 970d18d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/focusable/script/run-focus-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ define([
77
], function(platform, utils, Elements, Collector, formatResult) {
88

99
function resetActiveElement() {
10-
document.activeElement.blur();
10+
document.activeElement && document.activeElement.blur && document.activeElement.blur();
1111
document.body.focus();
1212
}
1313

0 commit comments

Comments
 (0)