Skip to content

calendar shows the current month even if you have selected two months later date range #1

@sam89-web

Description

@sam89-web

Actually I am opening this calendar in a modal, that pops up when user clicks on an tag element.

If user selects the date by clicking on the dates on the calendar then it works fine,

But if we pass the default selected dates like having selectedRange=[] with values two or three months later than current month, In that case on opening the calendar it shows the current month as it should show the month that contains the date range.

let me explain it a little more , to make the issue a bit more clearer to you.

I am using this calendar to select the range of dates to book hotel between two dates,
On our landing page when user selects the dates and then click the search button then we take our user to the the results page, and put the dates in the URL,
On the results page we are getting the same date range values from the URL and passing them in the calendar's selectedRange=[] prop , then calendar selects the date range without any problem but when user opens the calendar on the results page then it always shows the current month first,
Unfortunately because of that user have to go manually to the selected date range month by navigating through the next/previous button. So please resolve this issue.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions