Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/src/date-range-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class DateRangePicker extends BaseComponent {
const date = this._parseDate(event.target.value)

// valid date or empty date
if ((date instanceof Date && !Number.isNaN(date)) || (date === null)) {
if ((date instanceof Date && !isNaN(date)) || (date === null)) {
this._startDate = date
this._calendarDate = date
this._calendar.update(this._getCalendarConfig())
Expand Down Expand Up @@ -388,7 +388,7 @@ class DateRangePicker extends BaseComponent {
const date = this._parseDate(event.target.value)

// valid date or empty date
if ((date instanceof Date && !Number.isNaN(date)) || (date === null)) {
if ((date instanceof Date && !isNaN(date)) || (date === null)) {
this._endDate = date
this._calendarDate = date
this._calendar.update(this._getCalendarConfig())
Expand Down
Loading