mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 23:14:24 +01:00
fix(react/dialogs): prompt not setting default value properly
This commit is contained in:
parent
1f8aa90482
commit
54d613e00e
@ -39,6 +39,7 @@ function PromptDialogComponent() {
|
||||
useTriliumEvent("showPromptDialog", (opts) => {
|
||||
setOpts(opts);
|
||||
setShown(true);
|
||||
setValue(opts.defaultValue ?? "");
|
||||
})
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user