mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 19:19:20 +08:00
fix: Collapse.Panel collapsible should be optional (#28092)
It looks like this was broken in https://github.com/ant-design/ant-design/pull/27790. According to `rc-collapse`, the `collapsible` prop inside Collapse.Panel is optional, so it should be optional here as well if we're just forwarding props directly to the child component.
This commit is contained in:
parent
682b55d6b6
commit
16bc4bcdab
@ -18,7 +18,7 @@ export interface CollapsePanelProps {
|
|||||||
forceRender?: boolean;
|
forceRender?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
extra?: React.ReactNode;
|
extra?: React.ReactNode;
|
||||||
collapsible: CollapsibleType;
|
collapsible?: CollapsibleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
||||||
|
Loading…
Reference in New Issue
Block a user