mirror of https://github.com/ElemeFE/element
				
				
				
			InputNumber: fix accessing missing $refs in updated hook (#10995)
							parent
							
								
									31b65b8e51
								
							
						
					
					
						commit
						dd773b9e72
					
				| 
						 | 
				
			
			@ -216,7 +216,8 @@
 | 
			
		|||
      innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
 | 
			
		||||
    },
 | 
			
		||||
    updated() {
 | 
			
		||||
      let innerInput = this.$refs.input.$refs.input;
 | 
			
		||||
      if (!this.$refs || !this.$refs.input) return;
 | 
			
		||||
      const innerInput = this.$refs.input.$refs.input;
 | 
			
		||||
      innerInput.setAttribute('aria-valuenow', this.currentValue);
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue