Skip to content

Commit

Permalink
fix: corrige erro de includes no multi-checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriAtzler committed Dec 20, 2024
1 parent c840b73 commit e591592
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 361 deletions.
7 changes: 2 additions & 5 deletions packages/formbuilder/lib/form-fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ function FieldController<TFieldValues extends FieldValues = FieldValues>({
storeApi,
}: FieldControllerProps<TFieldValues>) {
useEffect(() => {


const state = storeApi.getState()
const state = storeApi.getState();

if (!state[fieldConfig.name]) {
return;
}

const isActive =
!fieldConfig.hidden &&
validateRules(fieldConfig, requiredFields, state);
!fieldConfig.hidden && validateRules(fieldConfig, requiredFields, state);

if (state[fieldConfig.name].active === isActive) {
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@4bits/ui",
"version": "1.14.63",
"version": "1.14.64",
"private": false,
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading

0 comments on commit e591592

Please sign in to comment.