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 followed instructions in documentation written for my React-Calendar version
I have checked if this bug is not already reported
Description
Hi!
I am using react-calendar v 3.1.0 and when i try to select range from month to month (using year view and allowPartialRange prop), onChange callback doesn`t trigger and range cannot be selected
Also, when i tried to pass array ["from date" , "to date"] as a value (using year view and selectRange=true prop), calendar didn't show selected range, only one selected month (for some reason the month which is the end of range, that was passed in value prop
onRangeChange = range => this.setState({from: range[0], to: range[1]});
Expected behavior
onChange callback triggers, then i put dates from this callback to state, then i pass these dates as value to react-calendar and then i can see selected range
Actual behavior
onChange callback never triggers and i cannot see selected range
Additional information
No response
Environment
Browser (if applicable):
React-Calendar version:
React version:
The text was updated successfully, but these errors were encountered:
Before you start - checklist
Description
Hi!
I am using react-calendar v 3.1.0 and when i try to select range from month to month (using year view and allowPartialRange prop), onChange callback doesn`t trigger and range cannot be selected
Also, when i tried to pass array ["from date" , "to date"] as a value (using year view and selectRange=true prop), calendar didn't show selected range, only one selected month (for some reason the month which is the end of range, that was passed in value prop
).
Steps to reproduce
view='year' showDoubleView={true} selectRange={true} value={[from, to]} allowPartialRange={true} onChange={this.onRangeChange}
onRangeChange = range => this.setState({from: range[0], to: range[1]});
Expected behavior
onChange callback triggers, then i put dates from this callback to state, then i pass these dates as value to react-calendar and then i can see selected range
Actual behavior
onChange callback never triggers and i cannot see selected range
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: