Skip to content

Commit

Permalink
Merge pull request #3897 from marmelab/fix-datetimeinput-style
Browse files Browse the repository at this point in the history
[RFR] Fix DateTimeInput style differs from other inputs
  • Loading branch information
djhi authored Oct 29, 2019
2 parents 66d8dd1 + 8b17ee4 commit 89649ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/src/input/DateTimeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ export const DateTimeInput: FunctionComponent<
> = ({
label,
helperText,
margin = 'dense',
onBlur,
onChange,
onFocus,
options,
source,
resource,
validate,
variant = 'filled',
...rest
}) => {
const {
Expand All @@ -99,7 +101,8 @@ export const DateTimeInput: FunctionComponent<
<TextField
id={id}
{...input}
margin="normal"
variant={variant}
margin={margin}
error={!!(touched && error)}
helperText={
(touched && error) || helperText ? (
Expand Down

0 comments on commit 89649ca

Please sign in to comment.