Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Jan 21, 2025
1 parent 39ae9ae commit ed58d9a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ function ButtonDateField(props: DatePickerFieldProps) {
variant="outlined"
size="small"
startIcon={<CalendarTodayRoundedIcon fontSize="small" />}
sx={{ minWidth: 'fit-content' }}
sx={[
{ minWidth: 'fit-content' },
...(Array.isArray(pickerContext.fieldSx) ? pickerContext.fieldSx : [pickerContext.fieldSx]),
]}
fullWidth
color={hasValidationError ? 'error' : 'primary'}
ref={pickerContext.triggerRef}
className={pickerContext.fieldClassName}
onClick={() => pickerContext.setOpen((prev) => !prev)}
>
{pickerContext.fieldLabel ? `${pickerContext.fieldLabel}: ${valueStr}` : valueStr}
Expand Down

0 comments on commit ed58d9a

Please sign in to comment.