refac/fix: node dom issue

This commit is contained in:
Timothy Jaeryang Baek 2025-07-08 10:00:20 +04:00
parent a56e9e586b
commit c42a6d8029

View file

@ -1,7 +1,7 @@
<script lang="ts">
import DOMPurify from 'dompurify';
import { onMount, getContext, createEventDispatcher, onDestroy } from 'svelte';
import { onMount, getContext, createEventDispatcher, onDestroy, tick } from 'svelte';
import * as FocusTrap from 'focus-trap';
const i18n = getContext('i18n');
@ -52,6 +52,7 @@
const confirmHandler = async () => {
show = false;
await tick();
await onConfirm();
dispatch('confirm', inputValue);
};