Skip to content

Commit

Permalink
Merge pull request #54 from indec-it/refactor/dateField
Browse files Browse the repository at this point in the history
refactor(dateField): spread props
  • Loading branch information
maximilianoforlenza authored Oct 17, 2019
2 parents f92ffda + 43a60c3 commit ecd6e50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DateField.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const handleChange = (date, onChange, currentValue, control) => {
};

const DateField = ({
control, label, value, dateFormat, maxDate, minDate, disabled, onChange
control, label, value, dateFormat, maxDate, minDate, disabled, onChange, ...props
}) => (
<FormGroup>
<Label>
Expand All @@ -32,6 +32,7 @@ const DateField = ({
disabled
}}
selected={value}
{...props}
onChange={date => handleChange(date, onChange, value, control)}
/>
</FormGroup>
Expand Down

0 comments on commit ecd6e50

Please sign in to comment.