Improving performance

This commit is contained in:
Liyas Thomas
2019-11-28 20:41:52 +05:30
parent 2a81c2611b
commit b10a209daf
28 changed files with 1028 additions and 585 deletions

View File

@@ -1,8 +1,8 @@
export default {
name: "textareaAutoHeight",
update({scrollHeight, clientHeight, style}) {
update({ scrollHeight, clientHeight, style }) {
if (scrollHeight !== clientHeight) {
style.minHeight = `${scrollHeight}px`;
}
}
}
};