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

Commit a2eca80

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(dialog): moved bottom focus trap to be a sibling
- 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 Closes #7408
1 parent 357e4d5 commit a2eca80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dialog/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ function MdDialogProvider($$interimElementProvider) {
938938
// The top focus trap inserted immeidately before the md-dialog element (as a sibling).
939939
// The bottom focus trap is inserted at the very end of the md-dialog element (as a child).
940940
element[0].parentNode.insertBefore(topFocusTrap, element[0]);
941-
element.append(bottomFocusTrap);
941+
element.after(bottomFocusTrap);
942942
}
943943

944944
/**

0 commit comments

Comments
 (0)