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:
Sam Marks 2020-12-01 08:40:35 +07:00 committed by GitHub
parent 682b55d6b6
commit 16bc4bcdab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ export interface CollapsePanelProps {
forceRender?: boolean;
id?: string;
extra?: React.ReactNode;
collapsible: CollapsibleType;
collapsible?: CollapsibleType;
}
const CollapsePanel: React.FC<CollapsePanelProps> = props => {