Skip to content

Commit

Permalink
fwr
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Jul 29, 2024
1 parent 4869211 commit 435dc5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/toolpad-studio-components/src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ function Checkbox(props: Props) {
label={props.label}
checked={props.checked ?? false}
labelPlacement={props.labelPlacement}
componentsProps={props.componentsProps}
control={
<CheckboxControl
onChange={handleChange}
Expand All @@ -84,6 +83,7 @@ function Checkbox(props: Props) {
checked={props.checked ?? false}
/>
}
slotProps={props.componentsProps}
/>
</FormGroup>
<FormHelperText>{formInputError?.message || ''}</FormHelperText>
Expand Down
7 changes: 4 additions & 3 deletions packages/toolpad-studio-components/src/FilePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ function FilePicker({ multiple, value, onChange, isRequired, ...rest }: FilePick
type="file"
value={undefined}
onChange={handleChange}
inputProps={{ multiple }}
InputLabelProps={{ shrink: true }}
{...(formInputError && {
error: Boolean(formInputError),
helperText: formInputError.message || '',
})}
/>,
slotProps={{
htmlInput: { multiple },
inputLabel: { shrink: true }
}} />,
);
}

Expand Down

0 comments on commit 435dc5f

Please sign in to comment.