Skip to content

Commit

Permalink
fix fwd/back
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed Feb 14, 2017
1 parent 1fa2835 commit ac3ab3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dialog-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@
var dialog = dpi.dialog;
var position = dialog.compareDocumentPosition(event.target);
if (position & Node.DOCUMENT_POSITION_PRECEDING) {
if (this.forwardTab_) {
if (this.forwardTab_) { // forward
dpi.focus_();
} else if (this.forwardTab_) {
} else { // backwards
document.documentElement.focus();
}
} else {
Expand Down

0 comments on commit ac3ab3d

Please sign in to comment.