fix appearance of new modal short dialog, fix dialog when input undefined
This commit is contained in:
parent
a7df775f62
commit
a2c1dcb58f
2 changed files with 7 additions and 5 deletions
|
|
@ -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>`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue