@@ -29,7 +29,7 @@ export class BaseDropdown extends ActionRunner {
2929 private boxContainer ?: HTMLElement ;
3030 private _label ?: HTMLElement ;
3131 private contents ?: HTMLElement ;
32- private visible : boolean ;
32+ private visible : boolean | undefined ;
3333
3434 constructor ( container : HTMLElement , options : IBaseDropdownOptions ) {
3535 super ( ) ;
@@ -109,7 +109,7 @@ export class BaseDropdown extends ActionRunner {
109109 }
110110
111111 isVisible ( ) : boolean {
112- return this . visible ;
112+ return ! ! this . visible ;
113113 }
114114
115115 protected onEvent ( e : Event , activeElement : HTMLElement ) : void {
@@ -272,7 +272,7 @@ export class DropdownMenu extends BaseDropdown {
272272
273273export class DropdownMenuActionViewItem extends BaseActionViewItem {
274274 private menuActionsOrProvider : any ;
275- private dropdownMenu : DropdownMenu ;
275+ private dropdownMenu : DropdownMenu | undefined ;
276276 private contextMenuProvider : IContextMenuProvider ;
277277 private actionViewItemProvider ?: IActionViewItemProvider ;
278278 private keybindings ?: ( action : IAction ) => ResolvedKeybinding | undefined ;
@@ -281,7 +281,7 @@ export class DropdownMenuActionViewItem extends BaseActionViewItem {
281281
282282 constructor ( action : IAction , menuActions : ReadonlyArray < IAction > , contextMenuProvider : IContextMenuProvider , actionViewItemProvider : IActionViewItemProvider | undefined , actionRunner : IActionRunner , keybindings : ( ( action : IAction ) => ResolvedKeybinding | undefined ) | undefined , clazz : string | undefined , anchorAlignmentProvider ?: ( ) => AnchorAlignment ) ;
283283 constructor ( action : IAction , actionProvider : IActionProvider , contextMenuProvider : IContextMenuProvider , actionViewItemProvider : IActionViewItemProvider | undefined , actionRunner : IActionRunner , keybindings : ( ( action : IAction ) => ResolvedKeybinding ) | undefined , clazz : string | undefined , anchorAlignmentProvider ?: ( ) => AnchorAlignment ) ;
284- constructor ( action : IAction , menuActionsOrProvider : any , contextMenuProvider : IContextMenuProvider , actionViewItemProvider : IActionViewItemProvider | undefined , actionRunner : IActionRunner , keybindings : ( ( action : IAction ) => ResolvedKeybinding | undefined ) | undefined , clazz : string | undefined , anchorAlignmentProvider ?: ( ) => AnchorAlignment ) {
284+ constructor ( action : IAction , menuActionsOrProvider : ReadonlyArray < IAction > | IActionProvider , contextMenuProvider : IContextMenuProvider , actionViewItemProvider : IActionViewItemProvider | undefined , actionRunner : IActionRunner , keybindings : ( ( action : IAction ) => ResolvedKeybinding | undefined ) | undefined , clazz : string | undefined , anchorAlignmentProvider ?: ( ) => AnchorAlignment ) {
285285 super ( null , action ) ;
286286
287287 this . menuActionsOrProvider = menuActionsOrProvider ;
0 commit comments