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: Wrong init state for chars counter (mdb-input)

enviaya pro asked 4 years ago


If I load the form that already has a value for input and set focus to this field, char counter shows 0/10 instead of 4/10 for example. But if I start typing, counter values restores correctly


Mikołaj Smoleński staff commented 4 years ago

Thanks for reporting the issue. We're adding it to our list of bugs. Best regards


EXPERTiCO free commented 2 years ago

Hi. What is the status or workaround for this issue?


Mikołaj Smoleński staff commented 2 years ago

You can add a key attribute to the input with some value (e.g. 0) and change it after component is mounted. It should re-render with the correct char counter value.

Keep coding,  Mikołaj from MDB


EXPERTiCO free commented 2 years ago

Not works for me.This is in template <MDBTextarea type="text" :key="workaround" counter :maxLength="1000" v-model="value[culture]" /> This is a script: mounted: function () { this.workaround = 1; },


Mikołaj Smoleński staff commented 2 years ago

@EXPERTiCO which version of MDB do You use? MDB4 or MDB5?

Keep coding,  Mikołaj from MDB


EXPERTiCO free commented 2 years ago

I use MDB5 version


Mikołaj Smoleński staff commented 2 years ago

We're going to fix it as soon as possible.

Regards,  Mikołaj from MDB


EXPERTiCO free commented 2 years ago

Thank you) Will wait


Mikołaj Smoleński staff commented 2 years ago

@EXPERTiCO it was fixed in the latest version (MDB5 Vue 1.12.0).

Keep coding,  Mikołaj from MDB



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Mac OS
  • Provided sample code: No
  • Provided link: No