Reset upper when shortcut is clicked.
parent
f2e1a0fc55
commit
96647ab208
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue