We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c14d67c commit a3a029dCopy full SHA for a3a029d
lib/components/form/date-time-selector.js
@@ -31,6 +31,12 @@ class DateTimeSelector extends Component {
31
32
_onDepartChange = (evt) => {
33
this.props.setQueryParam({ departArrive: evt.target.value })
34
+ if (evt.target.value === 'NOW') {
35
+ this.props.setQueryParam({
36
+ date: moment().format('YYYY-MM-DD'),
37
+ time: moment().format('HH:mm')
38
+ })
39
+ }
40
}
41
42
_onDateChange = (evt) => {
0 commit comments