We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
focusout
1 parent 654c3ed commit 3775bd7Copy full SHA for 3775bd7
jsEngine/settings/Settings.ts
@@ -50,9 +50,11 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
50
.addText(el => {
51
el.setPlaceholder('Folder')
52
.setValue(settings.startupScriptsDirectory ?? '')
53
- .onChange(async val => {
54
- settings.startupScriptsDirectory = val ? normalizePath(val) : undefined;
55
- await this.plugin.saveSettings();
+ .inputEl.addEventListener('focusout', ev => {
+ const target = ev.currentTarget as HTMLInputElement;
+ settings.startupScriptsDirectory = target.value ? normalizePath(target.value) : undefined;
56
+ void this.plugin.saveSettings();
57
+ this.display();
58
});
59
60
0 commit comments