Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 2ec328b

Browse files
authored
fix(close-button): render slots properly
1 parent b83de1e commit 2ec328b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/c-close-button/src/c-close-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const CCloseButton = defineComponent({
7373
__css={{ ...baseStyles, ...styles.value }}
7474
{...attrs}
7575
>
76-
{slots.default ? () => getValidChildren(slots) : () => <CCloseIcon />}
76+
{() => (slots.default ? getValidChildren(slots) : <CCloseIcon />)}
7777
</chakra.button>
7878
)
7979
}

0 commit comments

Comments
 (0)