Update Textarea.vue
parent
ff09b40e93
commit
5ff9196130
|
@ -21,10 +21,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
resize() {
|
||||
const style = window.getComputedStyle(this.$el);
|
||||
|
||||
this.$el.style.height = 'auto';
|
||||
|
||||
this.$el.style.height = this.$el.scrollHeight + 'px';
|
||||
|
||||
if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) {
|
||||
|
|
Loading…
Reference in New Issue