Topic: MdbInput Number Type Not Holding Value
                  
                  mkennethsmith
                  pro
                  asked 7 years ago
                
                Hi,
When using the mdb-input component, with the type set to number, the "innerValue" data field is not updated. Looking at the source code this is intentional. Can this be updated to support number inputs too please.
 
                
                
                
                  
                  
                  
                    
                    
                
              
              
              
            onChange(e) {
  if (this.type == "text" || this.type == "email" || this.type == "password" || this.type == "radio") {
    this.$emit('input', e.target.value);
    this.innerValue = e.target.value;
  }
  if (this.type == "checkbox") {
    this.$emit('change', e.target.checked);
    this.innerChecked = e.target.checked;
  }
  this.$forceUpdate();
},
                
                  
                      
                        Add comment
                      
                    
                  
                
                      
                      Mikołaj Smoleński
                      staff
                        answered 7 years ago
                    
                    Hi there,
Thanks for Your remarks. We will update it soon.
Best Regards
                    
                      
                    
                    
                    
                    
                  
                  
                FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Answered
Specification of the issue
              - ForumUser: Pro
 - Premium support: No
 - Technology: MDB Vue
 - MDB Version: 4.6.0
 - Device: Macbook Pro
 - Browser: Chrome, Safari
 - OS: macOS 10.13
 - Provided sample code: No
 - Provided link: No
 
Tags