cloudmr-ux 3.0.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,7 +57,7 @@ var CmrCollapse = function (props) {
|
|
|
57
57
|
if (Array.isArray(children)) {
|
|
58
58
|
return children.map(function (child, index) {
|
|
59
59
|
var panelKey = index;
|
|
60
|
-
var expanded = activeKeys.includes(panelKey)
|
|
60
|
+
var expanded = activeKeys.includes(panelKey);
|
|
61
61
|
// Make header clickable
|
|
62
62
|
var header = (_jsx("div", __assign({ onClick: function () { return onToggle(panelKey); }, style: { cursor: "pointer" } }, { children: child.props.header })));
|
|
63
63
|
return (_jsx(React.Fragment, { children: cloneElement(child, {
|