File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 584
584
}
585
585
break ;
586
586
}
587
- if ( typeof opt . $selected !== 'undefined' ) {
587
+ if ( typeof opt . $selected !== 'undefined' && opt . $selected !== null ) {
588
588
opt . $selected . trigger ( 'mouseup' ) ;
589
589
}
590
590
return ;
613
613
// pass event to selected item,
614
614
// stop propagation to avoid endless recursion
615
615
e . stopPropagation ( ) ;
616
- if ( typeof opt . $selected !== 'undefined' ) {
616
+ if ( typeof opt . $selected !== 'undefined' && opt . $selected !== null ) {
617
617
opt . $selected . trigger ( e ) ;
618
618
}
619
619
} ,
770
770
root = data . contextMenuRoot ;
771
771
772
772
if ( root !== opt && root . $layer && root . $layer . is ( e . relatedTarget ) ) {
773
- if ( typeof root . $selected !== 'undefined' ) {
773
+ if ( typeof root . $selected !== 'undefined' && root . $selected !== null ) {
774
774
root . $selected . trigger ( 'contextmenu:blur' ) ;
775
775
}
776
776
e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments