File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed 
apps/files_sharing/src/components Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2323<template >
2424	<Multiselect  ref =" multiselect" 
2525		class =" sharing-input" 
26+ 		:clear-on-select =" false" 
2627		:disabled =" !canReshare" 
2728		:hide-selected =" true" 
2829		:internal-search =" false" 
@@ -391,9 +392,18 @@ export default {
391392		 */  
392393		async  addShare (value ) { 
393394			if  (value .lookup ) { 
394- 				return  this .getSuggestions (this .query , true ) 
395+ 				await  this .getSuggestions (this .query , true ) 
396+ 
397+ 				//  focus the input again 
398+ 				this .$nextTick (() =>  { 
399+ 					this .$refs .multiselect .$el .querySelector (' .multiselect__input' focus () 
400+ 				}) 
401+ 				return  true  
395402			} 
396403
404+ 			//  TODO: reset the search string when done 
405+ 			//  https://github.com/shentao/vue-multiselect/issues/633 
406+ 
397407			//  handle externalResults from OCA.Sharing.ShareSearch 
398408			if  (value .handler ) { 
399409				const  share  =  await  value .handler (this ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments