Skip to content

Commit 02d7603

Browse files
committed
Update disabled tab
1 parent 204f0ca commit 02d7603

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import {
2323
<button
2424
class="bx--overflow-menu-options__btn"
2525
role="menuitem"
26-
[ngClass]="{
27-
'bx--overflow-menu-options__option--disabled': disabled
28-
}"
26+
[disabled]="disabled"
2927
[tabindex]="(disabled ? -1 : null)"
3028
[title]="(titleEnabled ? content : '')">
3129
<ng-content></ng-content>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ export class OverflowMenuPane extends Dialog {
8383
private listItems() {
8484
const buttonClass = ".bx--overflow-menu-options__btn";
8585
const disabledClass = ".bx--overflow-menu-options__option--disabled";
86-
return Array.from<any>(this.dialog.nativeElement.querySelectorAll(`${buttonClass}:not(${disabledClass})`));
86+
return Array.from<any>(this.dialog.nativeElement.querySelectorAll(`${buttonClass}:not([disabled])`));
8787
}
8888
}

0 commit comments

Comments
 (0)