mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	Forced to trigger search after compositionend
This commit is contained in:
		
							parent
							
								
									9a5793dfdd
								
							
						
					
					
						commit
						30056e7ffe
					
				| @ -170,6 +170,10 @@ function initNoteAutocomplete($el: JQuery<HTMLElement>, options?: Options) { | |||||||
|     }); |     }); | ||||||
|     $el.on("compositionend", () => { |     $el.on("compositionend", () => { | ||||||
|         isComposingInput = false; |         isComposingInput = false; | ||||||
|  |         const searchString = $el.autocomplete("val") as unknown as string; | ||||||
|  |         $el.autocomplete("val", ""); | ||||||
|  |         $el.setSelectedNotePath(""); | ||||||
|  |         $el.autocomplete("val", searchString); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     $el.addClass("note-autocomplete-input"); |     $el.addClass("note-autocomplete-input"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 SiriusXT
						SiriusXT