We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab746b9 commit 22ad127Copy full SHA for 22ad127
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "rc-collapse",
3
- "version": "1.11.7",
+ "version": "1.11.8",
4
"description": "rc-collapse ui component for react",
5
"keywords": [
6
"react",
src/Collapse.jsx
@@ -94,6 +94,11 @@ class Collapse extends Component {
94
expandIcon,
95
};
96
97
+ // https://github.com/ant-design/ant-design/issues/20479
98
+ if (typeof child.type === 'string') {
99
+ return child;
100
+ }
101
+
102
return React.cloneElement(child, props);
103
104
0 commit comments