Skip to content

Commit a5600f9

Browse files
committed
fix: do not use key at teleport
1 parent 1feb11f commit a5600f9

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

packages/components-vue/src/components/modal/Simple.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
<template>
22
<BaseErrorBoundary :theme="theme">
33
<slot v-if="$slots.toggle" name="toggle" v-bind="{ toggleModal, model }"></slot>
4-
<BaseWrapper
5-
v-if="!disabled"
6-
:key="modalId"
7-
:wrapper="Teleport"
8-
:wrap="!!target"
9-
:to="target"
10-
>
4+
<BaseWrapper v-if="!disabled" :wrapper="Teleport" :wrap="!!target" :to="target">
115
<dialog
126
:id="modalId"
137
ref="modalRef"
@@ -299,7 +293,7 @@
299293
300294
closeModal();
301295
},
302-
{ immediate: false }
296+
{ immediate: true }
303297
);
304298
305299
if (!router?.currentRoute) return;

packages/components-vue/src/components/pagination/ContentTable.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
emittedHasContent.value = value;
184184
emittedContent.value = content;
185185
emittedHydrateNodes.value = hydrateNodes;
186+
emit("create-node-and-refresh", createNodeAndRefresh);
186187
}
187188
188189
function refreshData() {
@@ -244,7 +245,4 @@
244245
245246
return response;
246247
}
247-
248-
// Lifecycle
249-
emit("create-node-and-refresh", createNodeAndRefresh);
250248
</script>

0 commit comments

Comments
 (0)