Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
feat(modal,tooltip): better focus support
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 19, 2014
1 parent 93d01e3 commit 6a960e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.helpers.dimensions'])
// Options: show
if(options.show) {
scope.$$postDigest(function() {
$modal.show();
options.trigger === 'focus' ? element[0].focus() : $modal.show();
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions'])
// Options: show
if(options.show) {
scope.$$postDigest(function() {
$tooltip.show();
options.trigger === 'focus' ? element[0].focus() : $tooltip.show();
});
}

Expand Down

0 comments on commit 6a960e4

Please sign in to comment.