We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebeea03 commit 5558f47Copy full SHA for 5558f47
packages/components/space/space.tsx
@@ -56,7 +56,9 @@ export default defineComponent({
56
function renderChildren() {
57
const children = getFlatChildrenSlots();
58
const separatorContent = renderTNodeJSX('separator');
59
- return children.map((child, index) => {
+ return children
60
+ .filter((child) => (isVNode(child) ? child.type !== Comment : true))
61
+ .map((child, index) => {
62
const isTeleport = isVNode(child) && child.type === Teleport;
63
if (isTeleport) return null;
64
// filter last child
0 commit comments