Skip to content

Commit 5babb1d

Browse files
committed
fix(runtime-core): delete stale slots which are present but undefined
1 parent 78c199d commit 5babb1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentSlots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const updateSlots = (
204204
// delete stale slots
205205
if (needDeletionCheck) {
206206
for (const key in slots) {
207-
if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
207+
if (!isInternalKey(key) && deletionComparisonTarget[key] == null) {
208208
delete slots[key]
209209
}
210210
}

0 commit comments

Comments
 (0)