mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: pass the prop disabled to form control
This commit is contained in:
parent
86775c6c1f
commit
dd32f75941
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ export function SelectInput<T>({
|
|||
},
|
||||
mb: 1,
|
||||
}}
|
||||
disabled={selectProps.disabled}
|
||||
>
|
||||
<FormControl.Label>{label}</FormControl.Label>
|
||||
<Select
|
||||
|
|
|
|||
Loading…
Reference in a new issue