Skip to content

Commit

Permalink
revert me
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl committed Aug 23, 2021
1 parent cfd25d5 commit ff58039
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src-docs/src/views/date_picker/date_picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export default () => {

return (
<EuiFormRow label="Select a date">
<EuiDatePicker selected={startDate} onChange={handleChange} />
<EuiDatePicker
selected={startDate}
onChange={handleChange}
minDate={moment()}
/>
</EuiFormRow>
);
};
2 changes: 2 additions & 0 deletions src-docs/src/views/date_picker/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export default () => {
selected={startDate}
onChange={setStartDate}
startDate={startDate}
minDate={moment()}
maxDate={moment('2023-01-01')}
endDate={endDate}
isInvalid={startDate > endDate}
aria-label="Start date"
Expand Down

0 comments on commit ff58039

Please sign in to comment.