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

Calendar: Range selection mode with numberOfMonths > 1 should show end date in the last showed month #15918

Open
szymonworld opened this issue Jun 28, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@szymonworld
Copy link

Describe the bug

The PR #15818 introduced a bug to the calendar in range selection mode.

Environment

macOS Sonoma 14.5

Reproducer

https://stackblitz.com/edit/github-naqavf-tdvop1?file=src%2Fapp%2Fapp.component.html

Angular version

17.3.1

PrimeNG version

17.17.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.19.1

Browser(s)

Arc 1.48

Steps to reproduce the behavior

  1. Open calendar
  2. Select some date range with at least 2 months
    Screenshot 2024-06-28 at 14 25 20
  3. Close calendar
  4. Open calendar
  5. First calendar shows end date and the second one is empty
    Screenshot 2024-06-28 at 14 25 29

Expected behavior

All showed months should be used to show selected date range, without context switching on reopen of calendar.

@szymonworld szymonworld added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant