Update CharCounter.plugin.js
This commit is contained in:
parent
54a25f9bd5
commit
e01ca52355
|
@ -169,7 +169,7 @@ class CharCounter {
|
|||
|
||||
BDFDB.addClass(input.parentElement.parentElement, "charcounter-added");
|
||||
if (type == "nickname") input.setAttribute("maxlength", 32);
|
||||
BDFDB.addEventListener(this, input, "keydown click", e => {
|
||||
BDFDB.addEventListener(this, input, "keydown click change", e => {
|
||||
clearTimeout(input.charcountertimeout);
|
||||
input.charcountertimeout = setTimeout(() => {updateCounter();},100);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue