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

Commit

Permalink
fix(dialog): moved bottom focus trap to be a sibling
Browse files Browse the repository at this point in the history
- bottomFocusTrap was appended to the dialog, in FF it seems like it didn't trapped the focus, ,moving it to be a sibling solves it.

fixes #7407
  • Loading branch information
EladBezalel committed Mar 4, 2016
1 parent e3b0cd8 commit 5bca6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dialog/dialog.js
Expand Up @@ -934,7 +934,7 @@ function MdDialogProvider($$interimElementProvider) {
// The top focus trap inserted immeidately before the md-dialog element (as a sibling).
// The bottom focus trap is inserted at the very end of the md-dialog element (as a child).
element[0].parentNode.insertBefore(topFocusTrap, element[0]);
element.append(bottomFocusTrap);
element.after(bottomFocusTrap);
}

/**
Expand Down

0 comments on commit 5bca6d9

Please sign in to comment.