Skip to content

Commit 7ab59c7

Browse files
committed
fix: fix expandIcon error
1 parent 97b5b4d commit 7ab59c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Collapse.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const Collapse = React.forwardRef<HTMLDivElement, CollapseProps>((props, ref) =>
130130
collapsible: rawCollapsible,
131131
onItemClick: rawOnItemClick,
132132
destroyInactivePanel: rawDestroyInactivePanel,
133+
expandIcon: rawExpandIcon = expandIcon,
133134
...restProps
134135
} = item;
135136

@@ -159,6 +160,7 @@ const Collapse = React.forwardRef<HTMLDivElement, CollapseProps>((props, ref) =>
159160
collapsible={mergeCollapsible}
160161
onItemClick={handleItemClick}
161162
destroyInactivePanel={mergeDestroyInactivePanel}
163+
expandIcon={rawExpandIcon}
162164
{...restProps}
163165
>
164166
{children}

0 commit comments

Comments
 (0)