Skip to content

Commit 892a063

Browse files
committed
tweak menu
1 parent 158e4f4 commit 892a063

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/aria/menu/menu.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {DeferredContent, DeferredContentAware} from '@angular/aria/deferred-cont
4444
exportAs: 'ngMenuTrigger',
4545
host: {
4646
'class': 'ng-menu-trigger',
47-
'[attr.tabindex]': 'tabindex()',
47+
'[attr.tabindex]': '_pattern.tabindex()',
4848
'[attr.aria-haspopup]': 'hasPopup()',
4949
'[attr.aria-expanded]': 'expanded()',
5050
'[attr.aria-controls]': '_pattern.menu()?.id()',
@@ -75,9 +75,6 @@ export class MenuTrigger<V> {
7575
/** Whether the menu trigger has a popup. */
7676
readonly hasPopup = computed(() => this._pattern.hasPopup());
7777

78-
/** The tabindex of the menu trigger. */
79-
readonly tabindex = computed(() => this._pattern.tabindex());
80-
8178
/** The menu trigger ui pattern instance. */
8279
_pattern: MenuTriggerPattern<V> = new MenuTriggerPattern({
8380
element: computed(() => this._elementRef.nativeElement),

0 commit comments

Comments
 (0)