mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	fix persistent toasts lingering after disposal in DOM
This commit is contained in:
		
							parent
							
								
									205081c804
								
							
						
					
					
						commit
						904eb25f64
					
				| @ -45,12 +45,12 @@ function showPersistent(options) { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (options.closeAfter) { |     if (options.closeAfter) { | ||||||
|         setTimeout(() => $toast.toast('dispose'), options.closeAfter); |         setTimeout(() => $toast.remove(), options.closeAfter); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function closePersistent(id) { | function closePersistent(id) { | ||||||
|     $("#toast-" + id).toast("dispose"); |     $("#toast-" + id).remove(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function showMessage(message, delay = 2000) { | function showMessage(message, delay = 2000) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam