Skip to content

Commit

Permalink
fix: boolean additional fields (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeVoyager authored Nov 8, 2024
1 parent 1547ed3 commit 50bc491
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const AdditionalFieldInput: React.FC<AdditionalFieldInputProps> = ({
<Toggle
{...defaultInputProps}
checked={!!value}
onChange={(eventOrPath: React.ChangeEvent<any> | string, value?: any) => onChangeEnhancer(eventOrPath, !value, onChange)}
onChange={(eventOrPath: React.ChangeEvent<any> | string) => onChangeEnhancer(eventOrPath, !value, onChange)}
onLabel="true"
offLabel="false"
type="checkbox"
Expand Down

0 comments on commit 50bc491

Please sign in to comment.