@desynova-digital/components 8.18.0 → 8.18.1

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.
@@ -160,8 +160,8 @@ var CheckboxGroup = function CheckboxGroup(props) {
160
160
  return child ? _react2.default.cloneElement(child, {
161
161
  name: props.name,
162
162
  isDisabled: child.props.isDisabled,
163
- defaultChecked: props.selected.indexOf(child.props.value) > -1,
164
- checked: props.selected.indexOf(child.props.value) > -1, //child.props.checked,
163
+ defaultChecked: props.selected && props.selected.indexOf(child.props.value) > -1,
164
+ checked: props.selected && props.selected.indexOf(child.props.value) > -1, //child.props.checked,
165
165
  readOnly: props.readOnly || child.props.readOnly,
166
166
  onChange: child.props.isDisabled ? props.onChange : function () {},
167
167
  theme: props.theme,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "8.18.0",
3
+ "version": "8.18.1",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "8.18.0",
10
+ "@desynova-digital/tokens": "8.18.1",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },