@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
|
@@ -3285,7 +3285,7 @@ var CheckboxComponent = function CheckboxComponent(_ref, ref) {
|
|
|
3285
3285
|
} else if (children === undefined) {
|
|
3286
3286
|
throw new Error("Please make sure to pass either a string or more Checkbox components as a child of your Checkbox component.");
|
|
3287
3287
|
}
|
|
3288
|
-
if (typeof children === "string") {
|
|
3288
|
+
if (typeof children === "string" || typeof children === "object" && children.type === "span") {
|
|
3289
3289
|
return children;
|
|
3290
3290
|
}
|
|
3291
3291
|
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.");
|