mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	remove dangling autocompletes after closing the tab
This commit is contained in:
		
							parent
							
								
									4c6e9480e4
								
							
						
					
					
						commit
						cafcb67a8a
					
				| @ -265,6 +265,9 @@ export default class TabManager extends Component { | |||||||
| 
 | 
 | ||||||
|         this.children = this.children.filter(tc => tc.tabId !== tabId); |         this.children = this.children.filter(tc => tc.tabId !== tabId); | ||||||
| 
 | 
 | ||||||
|  |         // remove dangling autocompletes after closing the tab
 | ||||||
|  |         $(".algolia-autocomplete").remove(); | ||||||
|  | 
 | ||||||
|         this.triggerEvent('tabRemoved', {tabId}); |         this.triggerEvent('tabRemoved', {tabId}); | ||||||
| 
 | 
 | ||||||
|         this.tabsUpdate.scheduleUpdate(); |         this.tabsUpdate.scheduleUpdate(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam