Skip to content

Commit 9950adf

Browse files
committed
fix: ignore slots that contains only whitespace (vuejs#10839)
1 parent f6336c2 commit 9950adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/instance/render-helpers/resolve-slots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function resolveSlots(
3939
}
4040
// ignore slots that contains only whitespace
4141
for (const name in slots) {
42-
if (!slots.hasOwnProperty(name)) break;
42+
if (!slots.hasOwnProperty(name)) continue;
4343
if (slots[name].every(isWhitespace)) {
4444
delete slots[name]
4545
}

0 commit comments

Comments
 (0)