File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ export class Menu implements OnDestroy {
723723 const documentTarget : any = this . el ? this . el . nativeElement . ownerDocument : 'document' ;
724724
725725 this . documentClickListener = this . renderer . listen ( documentTarget , 'click' , ( event ) => {
726- const isOutsideContainer = this . containerViewChild . nativeElement && ! this . containerViewChild . nativeElement . contains ( event . target ) ;
726+ const isOutsideContainer = this . containerViewChild ? .nativeElement && ! this . containerViewChild ? .nativeElement . contains ( event . target ) ;
727727 const isOutsideTarget = ! ( this . target && ( this . target === event . target || this . target . contains ( event . target ) ) ) ;
728728 if ( ! this . popup && isOutsideContainer && isOutsideTarget ) {
729729 this . onListBlur ( event ) ;
You can’t perform that action at this time.
0 commit comments