The text-input-dialogue is no longer broken.

This commit is contained in:
vorotamoroz
2023-10-14 23:07:51 +09:00
parent 983d9248ed
commit 11e64b13e2
3 changed files with 11 additions and 12 deletions

View File

@@ -58,8 +58,7 @@ export class InputStringDialog extends Modal {
onOpen() {
const { contentEl } = this;
this.titleEl.setText(this.title);
// For enter to submit
const formEl = contentEl.createEl("form");
const formEl = contentEl.createDiv();
new Setting(formEl).setName(this.key).setClass(this.isPassword ? "password-input" : "normal-input").addText((text) =>
text.onChange((value) => {
this.result = value;