⚡ Improving performance
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export default {
|
||||
name: "textareaAutoHeight",
|
||||
update({scrollHeight, clientHeight, style}) {
|
||||
update({ scrollHeight, clientHeight, style }) {
|
||||
if (scrollHeight !== clientHeight) {
|
||||
style.minHeight = `${scrollHeight}px`;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user