Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MdbInput Number Type Not Holding Value

mkennethsmith pro asked 6 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();
},

Mikołaj Smoleński staff answered 6 years ago


Hi there, Thanks for Your remarks. We will update it soon. Best Regards

Please insert min. 20 characters.

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