You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-light-calendar in my react app and it was working fine earlier but now it's not working and it gives "RangeError: invalid date" error when i try to open calendar.
I have also update the version of react and react-dom to "react": "^16.3.0", "react-dom": "^16.3.0" according to instruction.
I am using "@lls/react-light-calendar": "^2.2.0" this version in my react app.
But it gives "RangeError: invalid date" everytime.
<ReactLightCalendar startDate={this.state.startDate} endDate={this.state.endDate} onChange={this.onChange} range displayTime = {false}
disableDates={date => date >= new Date().getTime()}/>
Can you please provide the solution?
The text was updated successfully, but these errors were encountered:
I am using react-light-calendar in my react app and it was working fine earlier but now it's not working and it gives "RangeError: invalid date" error when i try to open calendar.
I have also update the version of react and react-dom to "react": "^16.3.0", "react-dom": "^16.3.0" according to instruction.
I am using "@lls/react-light-calendar": "^2.2.0" this version in my react app.
But it gives "RangeError: invalid date" everytime.
constructor(props) {
super(props);
const date = new Date();
const startDate = date.getTime();
const endDate = date.getTime();
this.state = {
startDate,
endDate
}
}
<ReactLightCalendar startDate={this.state.startDate} endDate={this.state.endDate} onChange={this.onChange} range displayTime = {false}
disableDates={date => date >= new Date().getTime()}/>
Can you please provide the solution?
The text was updated successfully, but these errors were encountered: