Fix max-length count of initial values

This commit is contained in:
Marcos Moura 2016-10-27 21:46:01 -02:00
parent 5c361ec012
commit 890a26009f
2 changed files with 2 additions and 0 deletions

View file

@ -119,6 +119,7 @@
managePlaceholderClass(this.placeholder, this.parentClasses);
manageHasValueClass(this.$el.value, this.parentClasses);
manageMaxlength(this.maxlength, this.$parent);
this.$parent.inputLength = this.$el.value.length;
}
};
</script>

View file

@ -113,6 +113,7 @@
managePlaceholderClass(this.placeholder, this.parentClasses);
manageHasValueClass(this.$el.value, this.parentClasses);
manageMaxlength(this.maxlength, this.$parent);
this.$parent.inputLength = this.$el.value.length;
if (!this.$el.getAttribute('rows')) {
this.$el.setAttribute('rows', '1');