@councilbox/councilbox-ui 2.0.60 → 2.0.61

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 Accordion = function Accordion(_ref) {
57
57
  disabled: disabled
58
58
  }
59
59
  });
60
- var _React$useState = _react["default"].useState(defaultExpanded),
60
+ var _React$useState = _react["default"].useState(defaultExpanded && !disabled),
61
61
  _React$useState2 = _slicedToArray(_React$useState, 2),
62
62
  expanded = _React$useState2[0],
63
63
  setExpanded = _React$useState2[1];
@@ -78,7 +78,7 @@ var Accordion = function Accordion(_ref) {
78
78
  }
79
79
  };
80
80
  _react["default"].useEffect(function () {
81
- closePanel();
81
+ if (disabled) closePanel();
82
82
  }, [disabled]);
83
83
  var handleAccordionClick = function handleAccordionClick(e) {
84
84
  e.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "2.0.60",
3
+ "version": "2.0.61",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",