@douglasneuroinformatics/libui 3.7.2 → 3.7.4

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.
@@ -2686,7 +2686,7 @@ var BooleanFieldCheckbox = ({
2686
2686
  /* @__PURE__ */ jsx117(
2687
2687
  Checkbox,
2688
2688
  {
2689
- checked: value,
2689
+ checked: Boolean(value),
2690
2690
  disabled: disabled || readOnly,
2691
2691
  id: name,
2692
2692
  name,
@@ -3433,7 +3433,9 @@ var Form = ({
3433
3433
  const { resolvedLanguage, t } = useTranslation("libui");
3434
3434
  const [rootErrors, setRootErrors] = useState8([]);
3435
3435
  const [errors, setErrors] = useState8({});
3436
- const [values, setValues] = useState8({});
3436
+ const [values, setValues] = useState8(
3437
+ initialValues ? getInitialValues(initialValues) : {}
3438
+ );
3437
3439
  const handleError = (error) => {
3438
3440
  const fieldErrors = {};
3439
3441
  for (const issue of error.issues) {
@@ -3485,11 +3487,6 @@ var Form = ({
3485
3487
  useEffect10(() => {
3486
3488
  revalidate();
3487
3489
  }, [resolvedLanguage]);
3488
- useEffect10(() => {
3489
- if (initialValues) {
3490
- setValues(getInitialValues(initialValues));
3491
- }
3492
- }, [initialValues]);
3493
3490
  return /* @__PURE__ */ jsxs47(
3494
3491
  "form",
3495
3492
  {