Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #266 from workfloworchestrator/select-field-empty-fix
Browse files Browse the repository at this point in the history
SelectField - Converts undefined to null
  • Loading branch information
mrijk authored Jan 25, 2024
2 parents 185dc21 + 1d9a46b commit a748ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/uniforms-surfnet/src/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function Select({
name={name}
onChange={(option) => {
if (!readOnly) {
onChange(option?.value);
// @ts-ignore
onChange(option?.value ?? null);
}
}}
styles={customStyles}
Expand Down

0 comments on commit a748ae9

Please sign in to comment.