dynamic-formik-form 1.0.4 → 1.0.5

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.mjs CHANGED
@@ -356,7 +356,7 @@ var createBootstrapAdapter = (Form, FormControl, FormLabel, FormText, FormCheck,
356
356
  children
357
357
  }
358
358
  ),
359
- FormControl: ({ className, required, error, children }) => /* @__PURE__ */ jsx(Form, { className, children }),
359
+ FormControl: ({ className, required, error, children }) => /* @__PURE__ */ jsx("div", { className: `${className || ""} ${error ? "is-invalid" : ""}`, children }),
360
360
  FormHelperText: ({ className, children }) => /* @__PURE__ */ jsx(FormText, { className, children }),
361
361
  Label: ({ className, htmlFor, children }) => /* @__PURE__ */ jsx(FormLabel, { htmlFor, className, children }),
362
362
  Box: ({ className, children, ...props }) => /* @__PURE__ */ jsx("div", { className, ...props, children }),