Skip to content

Commit 4e02963

Browse files
jonnybelmontezume
authored andcommitted
fix(date-time-input): today button not highlighting todays date (#927)
1 parent 016be9a commit 4e02963

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/inputs/date-time-input/date-time-input.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Constraints from '../../constraints';
1313
import messages from './messages';
1414
import filterDataAttributes from '../../../utils/filter-data-attributes';
1515
import {
16-
getDaysInMonth,
1716
changeTime,
1817
formatTime,
1918
getDateInMonth,
@@ -99,7 +98,7 @@ class DateTimeInput extends React.Component {
9998
calendarDate: today,
10099
highlightedIndex:
101100
prevState.suggestedItems.length +
102-
getDaysInMonth(today, this.props.timeZone) -
101+
getDateInMonth(today, this.props.timeZone) -
103102
1,
104103
}),
105104
() => this.inputRef.current.focus()

0 commit comments

Comments
 (0)