vue: board

This commit is contained in:
Hide_D committed 2021-09-05 17:52:39 +09:00
1 parent 9871559227
commit 53df6bbcc6
7 files changed
+197 -69

No files matched your search

+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`;
}