Skip to content

Commit

Permalink
FIX Use correct argument for FormBuilder context
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 18, 2024
1 parent bc0b13e commit 379053d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ const SearchableDropdownField = ({
setHasChanges(true);
setJustChanged(true);
}
if (multi) {
onChange(val);
} else {
onChange(val, { value: val.value });
}
// The first param is for handleChange() SearchableDropdownFieldEntwine.js
// The second param is for onChange in FormBuilder::buildComponent()
onChange(val, { value: val });
};

/**
Expand Down

0 comments on commit 379053d

Please sign in to comment.