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

p-calendar preventing calendar automatic closing with [hideOnDateTimeSelect]="false" not working for selectionMode="range" #14989

Closed
vladimirturkovic opened this issue Mar 8, 2024 · 5 comments · Fixed by #15740
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@vladimirturkovic
Copy link

Describe the bug

p-calendar preventing calendar automatic closing with [hideOnDateTimeSelect]="false" not working for selectionMode="range"

Environment

Reproducer

No response

Angular version

18.0.0

PrimeNG version

17.7.0

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

18.17.1

Browser(s)

chrome

Steps to reproduce the behavior

  1. add [hideOnDateTimeSelect]="false" and selectionMode="range" 2. select range date on calendar 3. calendar should stay opened

Expected behavior

When using [hideOnDateTimeSelect]="false" and selectionMode="range" after selecting range date, calendar should stay opened

@vladimirturkovic vladimirturkovic added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 8, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 18, 2024
@ziembar
Copy link

ziembar commented Apr 10, 2024

Experiencing the same thing...

@FalcaoCamilla
Copy link

Looks like there's an onDateSelect() function where a check is done to trigger hideOverlay(). In the case of the range, the hideOnDateTimeSelect property is not checked and hideOverlay is called whenever the second value is entered. This has not been resolved in the current versions.

@brenosilveira
Copy link

brenosilveira commented Apr 11, 2024

Screenshot_20240411_115313_Outlook
When the p-calendar is set to "range" hideOnDateTimeSelect = false is simply ignored, causing the calendar to be closed when clicking on the second date.

@Xylios13
Copy link

I've taken the liberty of creating a stackblitz that reproduces the error:
https://stackblitz.com/edit/github-naqavf-ypnqp4?file=src%2Fapp%2Fapp.component.html

@El-Tommy
Copy link

El-Tommy commented May 7, 2024

In version 17.16 the problem still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants