Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(select): fix escape closing dialogs when used inside select
Browse files Browse the repository at this point in the history
references #3827
  • Loading branch information
rschmukler committed Nov 5, 2015
1 parent 41671e2 commit f31d255
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ function SelectProvider($$interimElementProvider) {
break;
case keyCodes.TAB:
case keyCodes.ESCAPE:
ev.stopPropagation();
ev.preventDefault();
opts.restoreFocus = true;
$mdUtil.nextTick($mdSelect.hide, true);
Expand Down

0 comments on commit f31d255

Please sign in to comment.