vue: board

This commit is contained in:
2021-09-05 17:52:39 +09:00
parent 1c985e227f
commit 8261b85b86
7 changed files with 197 additions and 69 deletions
+7
View File
@@ -0,0 +1,7 @@
import { unwrap } from "./unwrap";
export function autoResizeTextarea(e: InputEvent): void {
const el = unwrap(e.target) as HTMLInputElement;
el.style.height = 'auto';
el.style.height = `${el.scrollHeight + 1}px`;
}