fix: confirm dialog input reset on show

This commit is contained in:
Timothy Jaeryang Baek 2025-06-17 14:24:23 +04:00
parent e866fba27c
commit fb26be7dd6

View File

@ -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');