mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-29 07:26:28 +08:00 
			
		
		
		
	Fix double items in dropdown [SCI-12267]
This commit is contained in:
		
							parent
							
								
									ff99f1df65
								
							
						
					
					
						commit
						c85e7ce1e2
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -317,8 +317,15 @@ export default { | |||
|       return this.newValue === value; | ||||
|     }, | ||||
|     open() { | ||||
|       if (!this.disabled) this.isOpen = true; | ||||
|       this.fetchOptions(); | ||||
|       if (this.disabled || this.isOpen) return; | ||||
| 
 | ||||
|       this.isOpen = true; | ||||
| 
 | ||||
|       if (this.optionsUrl) { | ||||
|         this.fetchedOptions = []; | ||||
|         this.nextPage = 1; | ||||
|         this.fetchOptions(); | ||||
|       } | ||||
|     }, | ||||
|     clear() { | ||||
|       this.newValue = this.multiple ? [] : null; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue