@onewelcome/react-lib-components 1.8.2 → 1.8.3
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.
- package/dist/react-lib-components.cjs.development.js +1 -1
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +1 -1
- package/dist/react-lib-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Form/Checkbox/Checkbox.tsx +4 -1
|
@@ -3277,7 +3277,7 @@ var CheckboxComponent = function CheckboxComponent(_ref, ref) {
|
|
|
3277
3277
|
} else if (children === undefined) {
|
|
3278
3278
|
throw new Error("Please make sure to pass either a string or more Checkbox components as a child of your Checkbox component.");
|
|
3279
3279
|
}
|
|
3280
|
-
if (typeof children === "string") {
|
|
3280
|
+
if (typeof children === "string" || typeof children === "object" && children.type === "span") {
|
|
3281
3281
|
return children;
|
|
3282
3282
|
}
|
|
3283
3283
|
throw new Error("If you pass Checkboxes as a child component (to create nested checkbox tree) you need to pass a label to the parent checkbox.");
|