Skip to content

Commit 639e663

Browse files
Update tabIndex of custom options
Co-Authored-By: youda97 <[email protected]>
1 parent 87038a4 commit 639e663

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dialog/overflow-menu/overflow-menu-pane.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export class OverflowMenuPane extends Dialog {
5555
}
5656

5757
setTimeout(() => {
58-
getFocusElementList(this.elementRef.nativeElement).every(button => button.tabIndex = -1);
58+
getFocusElementList(this.elementRef.nativeElement).every(button => {
59+
if (button.tabIndex === undefined) {
60+
button.tabIndex = -1;
61+
}
62+
});
5963
this.listItems()[0].focus();
6064
}, 0);
6165
}

0 commit comments

Comments
 (0)