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 @@ -25,8 +25,8 @@ const isLoading = ref(false);
2525const   children =  ref (props .item .children );
2626const   collapsed =  ref (! props .item .children );
2727
28- const   doLoadChildren =  async  (e ? :  MouseEvent ) =>  {
29-   //  the event is only not undefined  if the user explicitly clicked on the directory item toggle. the preventDefault 
28+ const   doLoadChildren =  async  (e :  MouseEvent   |   null ) =>  {
29+   //  the event is only not null  if the user explicitly clicked on the directory item toggle. the preventDefault 
3030  //  stops the event from bubbling up and causing a directory content load 
3131  e ?.preventDefault (); 
3232
@@ -46,7 +46,7 @@ const doLoadDirContent = (e: MouseEvent) => {
4646  if  (! isPlainClick (e )) return ; 
4747  e .preventDefault (); 
4848
49-   doLoadChildren (); 
49+   doLoadChildren (null ); 
5050  props .navigateViewContent (props .item .fullPath ); 
5151}; 
5252
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments