@@ -39,9 +39,6 @@ import {MENU_AIM, MenuAim} from './menu-aim';
39
39
import { MENU_TRIGGER , MenuTrigger } from './menu-trigger' ;
40
40
import { CdkMenuBase } from './menu-base' ;
41
41
42
- // TODO(mmalerba): Keyboard controls should match
43
- // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html#
44
-
45
42
/**
46
43
* Directive which configures the element as a Menu which should contain child elements marked as
47
44
* CdkMenuItem or CdkMenuGroup. Sets the appropriate role and aria-attributes for a menu and
@@ -68,10 +65,9 @@ import {CdkMenuBase} from './menu-base';
68
65
} )
69
66
export class CdkMenu extends CdkMenuBase implements AfterContentInit , OnDestroy {
70
67
/** Event emitted when the menu is closed. */
71
- @Output ( ) readonly closed : EventEmitter < void | 'click' | 'tab' | 'escape' > = new EventEmitter ( ) ;
68
+ @Output ( ) readonly closed : EventEmitter < void > = new EventEmitter ( ) ;
72
69
73
70
/** List of nested CdkMenuGroup elements */
74
- // TODO(mmalerba): Does it make sense for menubars to have groups as well?
75
71
@ContentChildren ( CdkMenuGroup , { descendants : true } )
76
72
private readonly _nestedGroups : QueryList < CdkMenuGroup > ;
77
73
@@ -84,8 +80,6 @@ export class CdkMenu extends CdkMenuBase implements AfterContentInit, OnDestroy
84
80
@Optional ( ) dir ?: Directionality ,
85
81
) {
86
82
super ( elementRef , menuStack , dir ) ;
87
- // TODO(mmalerba): This is matching what we were already doing, but judging
88
- // by the signature of `closed`, it looks like maybe we want to emit a reason?
89
83
this . destroyed . subscribe ( this . closed ) ;
90
84
this . menuStack ?. push ( this ) ;
91
85
this . _parentTrigger ?. registerChildMenu ( this ) ;
0 commit comments