resize textarea when a value change fix #160

This commit is contained in:
Marcos Moura 2016-12-08 09:57:24 -02:00
parent f005f4fbc8
commit 7d869f4402
2 changed files with 8 additions and 1 deletions

View file

@ -62,8 +62,8 @@ $input-size: 32px;
min-height: 32px;
max-height: 230px;
padding: 5px 0;
line-height: 1.3em;
resize: none;
line-height: 1.3em;
}
.md-error {

View file

@ -18,6 +18,13 @@
export default {
mixins: [common],
watch: {
value() {
this.$nextTick(() => {
autosize.update(this.$el);
});
}
},
mounted() {
this.parentContainer = getClosestVueParent(this.$parent, 'md-input-container');