mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +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;
|
||||
id?: string;
|
||||
extra?: React.ReactNode;
|
||||
collapsible: CollapsibleType;
|
||||
collapsible?: CollapsibleType;
|
||||
}
|
||||
|
||||
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
||||
|
Loading…
Reference in New Issue
Block a user