mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac/fix: node dom issue
This commit is contained in:
parent
a56e9e586b
commit
c42a6d8029
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import DOMPurify from 'dompurify';
|
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';
|
import * as FocusTrap from 'focus-trap';
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
@ -52,6 +52,7 @@
|
||||||
|
|
||||||
const confirmHandler = async () => {
|
const confirmHandler = async () => {
|
||||||
show = false;
|
show = false;
|
||||||
|
await tick();
|
||||||
await onConfirm();
|
await onConfirm();
|
||||||
dispatch('confirm', inputValue);
|
dispatch('confirm', inputValue);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue