Update CharCounter.plugin.js

This commit is contained in:
Mirco Wittrien 2019-12-10 13:27:56 +01:00
parent f5d7966512
commit 2a1a2600e3
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
class CharCounter {
getName () {return "CharCounter";}
getVersion () {return "1.4.2";}
getVersion () {return "1.4.3";}
getAuthor () {return "DevilBro";}
@ -129,6 +129,7 @@ class CharCounter {
processChannelTextArea (e) {
if (e.instance.props.type && this.maxLenghts[e.instance.props.type]) {
if (!BDFDB.ArrayUtils.is(e.returnvalue.props.children)) e.returnvalue.props.children = [e.returnvalue.props.children];
this.injectCounter(e.returnvalue, e.returnvalue.props.children, e.instance.props.type, BDFDB.dotCN.textarea, true);
}
}