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

Commit

Permalink
fix(modal): add focus check for IE
Browse files Browse the repository at this point in the history
- Check if element has focus method due to IE issues

Closes #5097
Fixes #5096
  • Loading branch information
Hadev-JHH authored and wesleycho committed Dec 18, 2015
1 parent 3b7f78a commit a5c2a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap'])
//move focus to specified element if available, or else to body
if (elementToReceiveFocus && elementToReceiveFocus.focus) {
elementToReceiveFocus.focus();
} else {
} else if (appendToElement.focus) {
appendToElement.focus();
}
}
Expand Down

0 comments on commit a5c2a5b

Please sign in to comment.