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

Dialog: blockScroll not working #3166

Closed
wshuman3 opened this issue Aug 18, 2022 · 1 comment · Fixed by #3167 or #3187
Closed

Dialog: blockScroll not working #3166

wshuman3 opened this issue Aug 18, 2022 · 1 comment · Fixed by #3167 or #3187
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@wshuman3
Copy link

Describe the bug

blockScroll adds the class p-overflow-hidden to the body when it is shown but it is not removed when it is closed

Reproducer

https://codesandbox.io/s/primereact-test-forked-2vbvp2

PrimeReact version

8.3.0

React version

18.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

ALL

Steps to reproduce the behavior

1.) Click Show Dialog
2.) Click Close in Dialog
3.) Notice "p-overflow-hidden" is still present on the body

Expected behavior

p-overflow-hidden is removed when the dialog is closed

@wshuman3 wshuman3 added Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible Type: Bug Issue contains a defect related to a specific component. labels Aug 18, 2022
melloware added a commit to melloware/primereact that referenced this issue Aug 18, 2022
@melloware melloware added 👍 confirmed and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 18, 2022
@melloware melloware self-assigned this Aug 18, 2022
@melloware melloware added this to the 9.0.0 milestone Aug 18, 2022
melloware added a commit to melloware/primereact that referenced this issue Aug 18, 2022
@mertsincan mertsincan modified the milestones: 9.0.0, 8.4.0 Aug 22, 2022
@melloware melloware reopened this Aug 23, 2022
@melloware melloware modified the milestones: 8.4.0, 8.5.0 Aug 23, 2022
@melloware
Copy link
Member

I am still seeing this issue in 8.4.0 so re-opening.

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
3 participants