Topic: Error in mdbCharCounter

anicka1354 pro asked 6 years ago


Error in the directive mdbCharCounter. If an initial value was specified for the input field or the value of the field was changed outside the component, the character counter does not work correctly. The error is corrected by adding "this.onKeyUp();" to CharCounterDirective.show(). The new version of CharCounterDirective.show() version of the module looks like this:

@HostListener('focus', ['$event']) show() {
   this.onKeyUp(); // !!!
   this._renderer.setElementStyle(this.textContainer, 'display', 'block');
}

and you might need to change the listened  event to track the changes in the field value that you made through the pop-up menu and cut? paste and delete commends.

@HostListener('input', ['$event']) onKeyUp() { ...

Sincerely yours,
Nick.


Dawid Adach pro commented 6 years ago

Thank you Nick! We will have a look and fix in next release (next after 07.05 release).

Damian Gemza staff commented 6 years ago

Dear Nick, your code will be implemented in next release (21.05.2018). Best Regards, Damian

FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags