Skip to content

Commit ac3ab3d

Browse files
committed
fix fwd/back
1 parent 1fa2835 commit ac3ab3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialog-polyfill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@
528528
var dialog = dpi.dialog;
529529
var position = dialog.compareDocumentPosition(event.target);
530530
if (position & Node.DOCUMENT_POSITION_PRECEDING) {
531-
if (this.forwardTab_) {
531+
if (this.forwardTab_) { // forward
532532
dpi.focus_();
533-
} else if (this.forwardTab_) {
533+
} else { // backwards
534534
document.documentElement.focus();
535535
}
536536
} else {

0 commit comments

Comments
 (0)