Collapse.Panel collapsible should be optional

fix: Collapse.Panel collapsible should be optional (#28092)
Collapse.Panel collapsible should be optionalfixcollapse panel collapsible optional

Committed by sammarks

commit message
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.

Editor assessment

The subject `fix: Collapse.Panel collapsible should be optional` states the API, the property, and the correct expectation with total precision. The body then delivers genuine instruction: it links the pull request that introduced the regression, cites rc-collapse's own typing to show the prop is optional there, and reasons that forwarding props demands parity. That is motivation, evidence, and rationale in a few sentences. The fix type fits perfectly, no footer is needed, and hygiene is clean, with no junk or trailing period. An exemplary, teachable bug report in message form.

Browse categories

More fix examples · Back to search