Recalculate height on any update

This commit is contained in:
Samuel Elliott 2018-03-06 21:55:04 +00:00
parent c13884414d
commit c9e681c242
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
</div>
<div class="bd-hint">{{ setting.hint }}</div>
</div>
<textarea class="bd-textarea" ref="textarea" @keyup.stop @input="recalculateHeight" v-model="setting.value" :disabled="setting.disabled"></textarea>
<textarea class="bd-textarea" ref="textarea" @keyup.stop v-model="setting.value" :disabled="setting.disabled"></textarea>
</div>
</template>
<script>
@ -30,6 +30,7 @@
}
},
mounted() {
this.$watch('setting.value', this.recalculateHeight);
this.recalculateHeight();
}
}