-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to show a calendar and allow only date selection but show a range selection according to the week selection logic #643
Comments
The second calendar is Week Calendar and I want to select only 1 date and show the range as startOfWeek and endOfWeek but after selection of the date it still shows selection of 2nd date. how do I remove 2nd date selection and still show date range selection according the logic? `import React, { useState } from "react"; const WeekCalendar = ({ onChange }) => { // const handleOnChange = (ranges) => { // // If only a single date is selected, set the range to startOfWeek and endOfWeek for that date // onChange({ startDate: newStartDate, endDate: newEndDate }); const handleOnChange = (ranges) => {
}; return ( export default WeekCalendar; |
Subject of the issue
Describe your issue here.
[BUG] Bug Reproduce Steps
Tell us how to reproduce this issue.
[BUG] Expected behaviour
Environment
Package Version:
React version:
Node version:
Browser:
The text was updated successfully, but these errors were encountered: