File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
projects/angular/components/ui-grid/src Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 633633 [disabled] ="column.dropdown?.disabled || disabled "
634634 [attr.data-column-name] ="getColumnName(column) "
635635 [expandedTranslation] ="intl.menuExpanded "
636+ (menuOpened) ="focusActiveFilterItem() "
636637 uiCustomMatMenuTriggerFor
637638 mat-button
638639 type ="button "
Original file line number Diff line number Diff line change @@ -1063,6 +1063,11 @@ export class UiGridComponent<T extends IGridDataEntry> extends ResizableGrid<T>
10631063 this . focusedColumnHeader = false ;
10641064 }
10651065
1066+ focusActiveFilterItem ( ) {
1067+ const activeItem : HTMLElement | null = document . querySelector ( '.cdk-overlay-container .active[role="menuitem"]' ) ;
1068+ activeItem ?. focus ( ) ;
1069+ }
1070+
10661071 private _announceGridHeaderActions ( ) {
10671072 this . _queuedAnnouncer . enqueue ( this . intl . gridHeaderActionsNotice ) ;
10681073 }
You can’t perform that action at this time.
0 commit comments