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: "Month" view - Overlay panel starts at incorrect width #5948

Open
ShaneCallananAerlytix opened this issue Feb 13, 2024 · 4 comments
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@ShaneCallananAerlytix
Copy link

Describe the bug

When opening the overlay panel of a Calendar set to "month" view, there is a brief moment when the panel's width and/or position is incorrect before it corrects itself.

Reproducer

https://stackblitz.com/edit/vitejs-vite-y41smz

PrimeReact version

10.2.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome 121

Steps to reproduce the behavior

  1. Go to Stackblitz provided
  2. Click calendar input to show overlay panel
  3. Overlay panel is briefly shown at wrong position and with wrong width

Expected behavior

Overlay panel shown at correct position and width

@ShaneCallananAerlytix ShaneCallananAerlytix added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 13, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 13, 2024
@melloware
Copy link
Member

It looks to me like it happens no matter what the view is.

@melloware
Copy link
Member

Weird it does not happen in NextJS on the showcase so now it has me even more confused.

@melloware
Copy link
Member

weird i am running a 10.5.1 CRA app and it also does not show the behavior of your code sandbox? @ShaneCallananAerlytix is this happening in your real app or just in the Stackblitz?

@ShaneCallananAerlytix
Copy link
Author

@melloware This is also happening in my real app. But only for "month" and "year" views

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

No branches or pull requests

2 participants