Also rerender on field editor change

This commit is contained in:
Tangent Wantwight 2023-11-20 23:05:27 -05:00
parent 33f07feb3d
commit 20b6624ed7
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ const TEXTAREA_STYLE: Partial<CSSStyleDeclaration> = {
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!"