mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Remove dropdown menus on component destroy and edit modal keep alive #245
This commit is contained in:
		
							parent
							
								
									a913e9811e
								
							
						
					
					
						commit
						8721dbda98
					
				| @ -19,9 +19,7 @@ | |||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|     <div class="w-full h-full text-sm rounded-b-lg rounded-tr-lg bg-bg shadow-lg border border-black-300"> |     <div class="w-full h-full text-sm rounded-b-lg rounded-tr-lg bg-bg shadow-lg border border-black-300"> | ||||||
|       <keep-alive> |       <component v-if="audiobook && show" :is="tabName" :audiobook="audiobook" :processing.sync="processing" @close="show = false" @selectTab="selectTab" /> | ||||||
|         <component v-if="audiobook" :is="tabName" :audiobook="audiobook" :processing.sync="processing" @close="show = false" @selectTab="selectTab" /> |  | ||||||
|       </keep-alive> |  | ||||||
|     </div> |     </div> | ||||||
|   </modals-modal> |   </modals-modal> | ||||||
| </template> | </template> | ||||||
|  | |||||||
| @ -228,6 +228,9 @@ export default { | |||||||
|       document.removeEventListener('scroll', this.scroll, true) |       document.removeEventListener('scroll', this.scroll, true) | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   mounted() {} |   mounted() {}, | ||||||
|  |   beforeDestroy() { | ||||||
|  |     if (this.menu) this.menu.remove() | ||||||
|  |   } | ||||||
| } | } | ||||||
| </script> | </script> | ||||||
| @ -127,6 +127,9 @@ export default { | |||||||
|       document.removeEventListener('scroll', this.scroll, true) |       document.removeEventListener('scroll', this.scroll, true) | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   mounted() {} |   mounted() {}, | ||||||
|  |   beforeDestroy() { | ||||||
|  |     if (this.menu) this.menu.remove() | ||||||
|  |   } | ||||||
| } | } | ||||||
| </script> | </script> | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user