You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/modal/test/modal.spec.js
+25-1
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,12 @@ describe('$uibModal', function () {
22
22
scope.text=ctrl.text;
23
23
}
24
24
};
25
+
}).directive('focusMe',function(){
26
+
return{
27
+
link: function(scope,elem,attrs){
28
+
elem.focus();
29
+
}
30
+
};
25
31
});
26
32
}));
27
33
@@ -413,6 +419,24 @@ describe('$uibModal', function () {
413
419
openAndCloseModalWithAutofocusElement();
414
420
});
415
421
422
+
it('should not focus on the element that has autofocus attribute when the modal is opened and something in the modal already has focus and the animations have finished',function(){
0 commit comments