Update CharCounter.plugin.js
This commit is contained in:
parent
f5d7966512
commit
2a1a2600e3
|
@ -3,7 +3,7 @@
|
||||||
class CharCounter {
|
class CharCounter {
|
||||||
getName () {return "CharCounter";}
|
getName () {return "CharCounter";}
|
||||||
|
|
||||||
getVersion () {return "1.4.2";}
|
getVersion () {return "1.4.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@ class CharCounter {
|
||||||
|
|
||||||
processChannelTextArea (e) {
|
processChannelTextArea (e) {
|
||||||
if (e.instance.props.type && this.maxLenghts[e.instance.props.type]) {
|
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);
|
this.injectCounter(e.returnvalue, e.returnvalue.props.children, e.instance.props.type, BDFDB.dotCN.textarea, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue