Skip to content

Commit

Permalink
fix: checkbox state uses checked not value (#622)
Browse files Browse the repository at this point in the history
this was preventing the checkbox state from showing correctly
  • Loading branch information
travis authored Jan 11, 2024
1 parent 57ebba2 commit 608bdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const WrapInDirectoryCheckbox: Component<WrapInDirectoryCheckboxProps> =
},
[]
)
return createElement('input', { ...props, type: 'checkbox', value: wrapInDirectory, onChange })
return createElement('input', { ...props, type: 'checkbox', checked: wrapInDirectory, onChange })
})

export type UploaderFormOptions<T extends As = 'form'> = Options<T>
Expand Down

0 comments on commit 608bdc1

Please sign in to comment.