primeng icon indicating copy to clipboard operation
primeng copied to clipboard

PrimeNGConfig OverlayOptions: Responsive modal dropdown doesn't remove p-overflow-hidden class from body

Open xRino94 opened this issue 5 months ago • 0 comments

Describe the bug

When using global configuration like this:

primeNGConfig.overlayOptions = { responsive: { breakpoint: "960px", }, };

the dropdown correctly show as overlay dialog in smaller screen. If I close the dropdown clicking outside the dialog, everything is ok. If I select an element of the dropdown the scroll in the page remain locked.

I think the problem is related to not calling DomHandler.unblockBodyScroll() in Dropdown#hide.

Environment

Reproducer

No response

Angular version

18.1.1

PrimeNG version

17.18.5

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.15.1

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

xRino94 avatar Sep 02 '24 10:09 xRino94