From 20b6624ed7b9c0a4ef1b36308eeaeb6c6405e3d6 Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Mon, 20 Nov 2023 23:05:27 -0500 Subject: [PATCH] Also rerender on field editor change --- src/3x5.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/3x5.ts b/src/3x5.ts index d3de229..0b1e86b 100644 --- a/src/3x5.ts +++ b/src/3x5.ts @@ -44,7 +44,9 @@ const TEXTAREA_STYLE: Partial = { width: "100%", }; -const fieldInput = document.createElement("textarea"); +const fieldInput = Object.assign(document.createElement("textarea"), { + oninput: render, +}); Object.assign(fieldInput.style, TEXTAREA_STYLE, { height: "8em" }); fieldInput.value = String.raw` title "Hello, World!"