File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,9 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
158158 }
159159 }
160160
161- public handleMouseLeave ( event : any ) {
162- if ( ! this . inFocus$ . getValue ( ) ) {
163- this . collapsePreview ( event ) ;
164- } else {
165- event . preventDefault ( ) ;
166- }
161+ public handleMouseLeave ( event : MouseEvent ) : void {
162+ event . preventDefault ( ) ;
163+ this . collapsePreview ( event ) ;
167164 }
168165
169166 /**
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ export class MenuComponent implements OnInit, OnDestroy {
223223 * @param {Function } handler The function to delay
224224 * @param {number } ms The amount of ms to delay the handler function by
225225 */
226- private previewToggleDebounce ( handler : ( ) => void , ms : number ) : void {
226+ protected previewToggleDebounce ( handler : ( ) => void , ms : number ) : void {
227227 if ( hasValue ( this . previewTimer ) ) {
228228 clearTimeout ( this . previewTimer ) ;
229229 }
You can’t perform that action at this time.
0 commit comments