diff --git a/src/lib/components/common/ConfirmDialog.svelte b/src/lib/components/common/ConfirmDialog.svelte index 29efc59e4..baf4efb61 100644 --- a/src/lib/components/common/ConfirmDialog.svelte +++ b/src/lib/components/common/ConfirmDialog.svelte @@ -25,11 +25,19 @@ export let show = false; + $: if (show) { + init(); + } + let modalElement = null; let mounted = false; let focusTrap: FocusTrap.FocusTrap | null = null; + const init = () => { + inputValue = ''; + }; + const handleKeyDown = (event: KeyboardEvent) => { if (event.key === 'Escape') { console.log('Escape');