Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit a5c2a5b

Browse files
Hadev-JHHwesleycho
authored andcommitted
fix(modal): add focus check for IE
- Check if element has focus method due to IE issues Closes #5097 Fixes #5096
1 parent 3b7f78a commit a5c2a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/modal/modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap'])
308308
//move focus to specified element if available, or else to body
309309
if (elementToReceiveFocus && elementToReceiveFocus.focus) {
310310
elementToReceiveFocus.focus();
311-
} else {
311+
} else if (appendToElement.focus) {
312312
appendToElement.focus();
313313
}
314314
}

0 commit comments

Comments
 (0)