🐛 Fixed build + refactored all js files

This commit is contained in:
Liyas Thomas
2019-11-27 06:54:32 +05:30
parent dcf1966719
commit 36568d5720
6 changed files with 87 additions and 89 deletions

View File

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