fix: pass the prop disabled to form control

This commit is contained in:
EnixCoda 2022-08-19 02:49:48 +08:00
parent 86775c6c1f
commit dd32f75941
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ export function Checkbox({
...rest
}: Override<CheckboxProps, { label: React.ReactNode } & IO<boolean>>) {
return (
<FormControl>
<FormControl disabled={rest.disabled}>
<PrimerCheckbox
sx={{
marginTop: '4px', // align label

View file

@ -38,6 +38,7 @@ export function SelectInput<T>({
},
mb: 1,
}}
disabled={selectProps.disabled}
>
<FormControl.Label>{label}</FormControl.Label>
<Select