@@ -6,7 +6,7 @@ import { Transition, SuiTransition, TransitionController, TransitionDirection }
66import { HandledEvent , IAugmentedElement , KeyCode } from "../../../misc/util/index" ;
77import { DropdownService , DropdownAutoCloseType } from "../services/dropdown.service" ;
88// Polyfill for IE
9- import "element- closest" ;
9+ import "../../../misc/util/helpers/ closest" ;
1010
1111@Directive ( {
1212 // We must attach to every '.item' as Angular doesn't support > selectors.
@@ -144,11 +144,11 @@ export class SuiDropdownMenu extends SuiTransition implements AfterContentInit,
144144 this . menuAutoSelectFirst = false ;
145145 this . menuSelectedItemClass = "selected" ;
146146
147- this . _documentKeyDownListener = renderer . listen ( "document" , "keydown" , ( e :KeyboardEvent ) => this . onDocumentKeyDown ( e ) ) ;
147+ this . _documentKeyDownListener = renderer . listen ( "document" , "keydown" , ( e :any ) => this . onDocumentKeyDown ( e ) ) ;
148148 }
149149
150150 @HostListener ( "click" , [ "$event" ] )
151- public onClick ( e :HandledEvent & MouseEvent ) :void {
151+ public onClick ( e :HandledEvent & any ) :void {
152152 if ( ! e . eventHandled ) {
153153 e . eventHandled = true ;
154154
@@ -162,7 +162,7 @@ export class SuiDropdownMenu extends SuiTransition implements AfterContentInit,
162162 }
163163 }
164164
165- public onDocumentKeyDown ( e :KeyboardEvent ) :void {
165+ public onDocumentKeyDown ( e :any ) :void {
166166 // Only the root dropdown (i.e. not nested dropdowns) is responsible for keeping track of the currently selected item.
167167 if ( this . _service . isOpen && ! this . _service . isNested ) {
168168 // Stop document events like scrolling while open.
0 commit comments