x-ui-design 0.3.67 → 0.3.68

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/index.esm.js CHANGED
@@ -1063,16 +1063,18 @@ const FormItemChildComponent = ({
1063
1063
  }
1064
1064
  return /*#__PURE__*/cloneElement(child, {
1065
1065
  ...props,
1066
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1067
+ // @ts-expect-error
1066
1068
  name,
1067
1069
  onChange: handleChange,
1068
1070
  key: `${name}_${wasNormalize}`,
1069
1071
  value: fieldValue ?? props.value,
1070
- ...(error ? {
1071
- error
1072
- } : {}),
1073
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1074
- // @ts-expect-error
1075
- __injected: true
1072
+ ...('dangerouslySetInnerHTML' in childProps ? {} : {
1073
+ __injected: true,
1074
+ ...(error ? {
1075
+ error
1076
+ } : {})
1077
+ })
1076
1078
  });
1077
1079
  };
1078
1080
  return injectPropsIntoFinalLeaf(child);