mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-18 04:01:07 +00:00
Fix max-length count of initial values
This commit is contained in:
parent
5c361ec012
commit
890a26009f
2 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue