Skip to content
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

Date gets deselected in Calendar with selection mode range #2279

Closed
annadaresay opened this issue Sep 9, 2021 · 0 comments
Closed

Date gets deselected in Calendar with selection mode range #2279

annadaresay opened this issue Sep 9, 2021 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@annadaresay
Copy link

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Codesandbox case
https://codesandbox.io/s/primereact-test-forked-mgcsf

Current behavior
I use Calendar with selectionMode range. First I select date1, then date2. If date2 < date1, then date1 is deselected.

Expected behavior
I'm thinking order of dates shouldn't matter, when selecting a range, or is this expected behaviour? If so, a setting for this would be great!

Please tell us about your environment:

  • React version:
    16.8.0

  • PrimeReact version:
    6.0.1

  • Browser:
    Chrome 93.0

@mertsincan mertsincan self-assigned this Nov 6, 2021
@mertsincan mertsincan added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Nov 6, 2021
@mertsincan mertsincan added this to the 7.0.0.Final milestone Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants