fix appearance of new modal short dialog, fix dialog when input undefined

This commit is contained in:
Stewart Allen 2025-02-02 19:13:28 -05:00
commit a2c1dcb58f
2 changed files with 7 additions and 5 deletions

View file

@ -132,7 +132,7 @@ gapp.register("kiri.ui", [], (root, exports) => {
if (Array.isArray(input)) {
iid = `confirm-input-${rnd}`;
html.append(`<div><textarea rows="15" cols="40" class="grow" type="text" spellcheck="false" id="${iid}"></textarea></div>`);
} else {
} else if (input) {
iid = `confirm-input-${rnd}`;
html.append(`<div><input class="grow" type="text" spellcheck="false" id="${iid}"/></div>`);
}