diff --git a/apps/client/src/widgets/dialogs/prompt.tsx b/apps/client/src/widgets/dialogs/prompt.tsx index 90aec4934..60ec94b88 100644 --- a/apps/client/src/widgets/dialogs/prompt.tsx +++ b/apps/client/src/widgets/dialogs/prompt.tsx @@ -33,12 +33,13 @@ function PromptDialogComponent() { const labelRef = useRef(null); const answerRef = useRef(null); const [ opts, setOpts ] = useState(); - const [ value, setValue ] = useState(""); + const [ value, setValue ] = useState(""); const [ shown, setShown ] = useState(false); useTriliumEvent("showPromptDialog", (opts) => { setOpts(opts); setShown(true); + setValue(opts.defaultValue ?? ""); }) return (