Reset upper when shortcut is clicked.

pull/1744/head
Hunter Trujillo 2017-08-16 15:47:59 -06:00
parent f2e1a0fc55
commit 96647ab208
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class CustomTimeRange extends Component {
handleTimeRangeShortcut(shortcut) {
return () => {
let lower
const upper = moment()
switch (shortcut) {
case 'pastWeek': {
@ -133,6 +134,7 @@ class CustomTimeRange extends Component {
}
this.lowerCal.setValue(lower)
this.upperCal.setValue(upper)
}
}
}