From 11e64b13e2d0779aa2dbf8695fa9231072390b9e Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sat, 14 Oct 2023 23:07:51 +0900 Subject: [PATCH] The text-input-dialogue is no longer broken. --- package-lock.json | 14 +++++++------- package.json | 6 +++--- src/dialogs.ts | 3 +-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index b26b371..a33daae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.28.0", "events": "^3.3.0", - "obsidian": "^1.3.5", + "obsidian": "^1.4.11", "postcss": "^8.4.27", "postcss-load-config": "^4.0.1", "pouchdb-adapter-http": "^8.0.1", @@ -3223,9 +3223,9 @@ } }, "node_modules/obsidian": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.4.0.tgz", - "integrity": "sha512-fsZMPlxgflGSBSP6P4BjQi5+0MqZl3h6FEDEZ3CNnweNdDw0doyqN3FMO/PGWfuxPT77WicVwUxekuI3e6eCGg==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.4.11.tgz", + "integrity": "sha512-BCVYTvaXxElJMl6MMbDdY/CGK+aq18SdtDY/7vH8v6BxCBQ6KF4kKxL0vG9UZ0o5qh139KpUoJHNm+6O5dllKA==", "dev": true, "dependencies": { "@types/codemirror": "5.60.8", @@ -6913,9 +6913,9 @@ } }, "obsidian": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.4.0.tgz", - "integrity": "sha512-fsZMPlxgflGSBSP6P4BjQi5+0MqZl3h6FEDEZ3CNnweNdDw0doyqN3FMO/PGWfuxPT77WicVwUxekuI3e6eCGg==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.4.11.tgz", + "integrity": "sha512-BCVYTvaXxElJMl6MMbDdY/CGK+aq18SdtDY/7vH8v6BxCBQ6KF4kKxL0vG9UZ0o5qh139KpUoJHNm+6O5dllKA==", "dev": true, "requires": { "@types/codemirror": "5.60.8", diff --git a/package.json b/package.json index c4cdfc2..2da0314 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "@types/diff-match-patch": "^1.0.32", "@types/node": "^20.2.5", "@types/pouchdb": "^6.4.0", - "@types/pouchdb-browser": "^6.1.3", "@types/pouchdb-adapter-http": "^6.1.3", "@types/pouchdb-adapter-idb": "^6.1.4", + "@types/pouchdb-browser": "^6.1.3", "@types/pouchdb-core": "^7.0.11", "@types/pouchdb-mapreduce": "^6.1.7", "@types/pouchdb-replication": "^6.4.4", @@ -33,7 +33,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.28.0", "events": "^3.3.0", - "obsidian": "^1.3.5", + "obsidian": "^1.4.11", "postcss": "^8.4.27", "postcss-load-config": "^4.0.1", "pouchdb-adapter-http": "^8.0.1", @@ -60,4 +60,4 @@ "xxhash-wasm": "0.4.2", "xxhash-wasm-102": "npm:xxhash-wasm@^1.0.2" } -} \ No newline at end of file +} diff --git a/src/dialogs.ts b/src/dialogs.ts index 01ca03b..3e3ab7b 100644 --- a/src/dialogs.ts +++ b/src/dialogs.ts @@ -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;