Skip to content

Commit

Permalink
implement tabbableChildren getter for menu-button cell-view
Browse files Browse the repository at this point in the history
  • Loading branch information
mollykreis committed May 24, 2024
1 parent 60179bb commit 39ac1bb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ export class TableColumnMenuButtonCellView extends TableCellView<TableColumnMenu
this.menuButton?.blur();
}

public override get tabbableChildren(): HTMLElement[] {
// this.menuButton can be initialized even when not active in the template, so make sure it's in our DOM
if (this.menuButton?.getRootNode() === this.shadowRoot) {
return [this.menuButton];
}
return [];
}

public onMenuButtonBeforeToggle(event: CustomEvent<MenuButtonToggleEventDetail>): boolean {
const configuredSlotName = this.columnConfig?.menuSlot;
if (configuredSlotName && event.detail.newState) {
Expand Down

0 comments on commit 39ac1bb

Please sign in to comment.