Skip to content

Commit

Permalink
Fix SearchInput variant="outlined" has hole in the outline
Browse files Browse the repository at this point in the history
Fixes #6468
Supersedes #6470
  • Loading branch information
fzaninotto committed Aug 9, 2021
1 parent 4711393 commit e31570d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/ra-ui-materialui/src/input/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ const TextInput: FunctionComponent<TextInputProps> = ({
id={id}
{...input}
label={
<FieldTitle
label={label}
source={source}
resource={resource}
isRequired={isRequired}
/>
label !== '' &&
label !== false && (
<FieldTitle
label={label}
source={source}
resource={resource}
isRequired={isRequired}
/>
)
}
error={!!(touched && (error || submitError))}
helperText={
Expand Down

0 comments on commit e31570d

Please sign in to comment.