Fixed #2919 - Textarea: resize height when window resized if autoResize is true

pull/2981/head
Tuğçe Küçükoğlu 2022-09-02 11:08:33 +03:00
parent 36f3e3f20e
commit dde6925d15
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
</template>
<script>
import DomHandler from '../utils/DomHandler';
export default {
props: {
value: null,
@ -14,7 +16,7 @@ export default {
}
},
updated() {
if (this.$el.offsetParent && this.autoResize) {
if (DomHandler.isVisible(this.$el) && this.$el.offsetParent.tagName !== 'BODY' && this.autoResize) {
this.resize();
}
},