Skip to content

Commit

Permalink
[ML] Fixing min and max data picker options (#21197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Jul 25, 2018
1 parent 755409d commit cd605e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class TimeRangeSelector extends Component {
<EuiDatePicker
selected={datePickerTimes.start}
onChange={this.setStartTime}
maxDate={datePickerTimes.end}
inline
showTimeSelect
/>)
Expand All @@ -93,6 +94,7 @@ export class TimeRangeSelector extends Component {
<EuiDatePicker
selected={datePickerTimes.end}
onChange={this.setEndTime}
minDate={datePickerTimes.start}
inline
showTimeSelect
/>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h3 class="euiTitle">Create new event</h3>
<datepicker
offset-timezone
ng-model="ui.timepicker.start"
max-date="ui.timepicker.end"
show-weeks="false">
</datepicker>
<div class="partition"></div>
Expand All @@ -62,6 +63,7 @@ <h3 class="euiTitle">Create new event</h3>
<datepicker
offset-timezone
ng-model="ui.timepicker.end"
min-date="ui.timepicker.start"
show-weeks="false">
</datepicker>
</div>
Expand All @@ -80,6 +82,7 @@ <h3 class="euiTitle">Create new event</h3>
<datepicker
offset-timezone
ng-model="ui.timepicker.start"
max-date="ui.timepicker.end"
show-weeks="false">
</datepicker>
<div class="partition partition-large"></div>
Expand All @@ -94,6 +97,7 @@ <h3 class="euiTitle">Create new event</h3>
<datepicker
offset-timezone
ng-model="ui.timepicker.end"
min-date="ui.timepicker.start"
show-weeks="false">
</datepicker>
</div>
Expand Down

0 comments on commit cd605e5

Please sign in to comment.