Fixed #4269 -Textarea autoResize issue

pull/4464/head
Furkan Sezis 2023-09-13 15:44:57 +03:00
parent 86e0cbd310
commit 6e492d1fd9
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ export default {
const style = window.getComputedStyle(this.$el);
this.$el.style.height = 'auto';
this.$el.style.height = `calc(${style.borderTopWidth} + ${style.borderBottomWidth} + ${this.$el.scrollHeight}px)`;
this.$el.style.height = this.$el.scrollHeight + 'px';
if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) {
this.$el.style.overflowY = 'scroll';