Open Closed

Problem with scrolling in Primeng components #5425


User avatar
0
tomlew created
  • ABP Framework version: v7.2.2
  • UI type: Angular with LeptonX
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" I’m using Primeng components like dropdown, autocomplete, etc. but scrolling in these components is intercepted by abp page (body) scrollbar which remains visible instead of being hidden/disabled. This leads to scrolling the whole page, not the dropdown list. Manipulating by CSS doesn’t work. I want to control scrolling behaviour to workaround the problem. Is it possible to disable ABP page scrollbar programmatically?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hi,

    Can you please try this ->

    onDropDownClose() {
    
        this.dropDownOpen = false;
    
        document.getElementsByClassName('lpx-scroll-container')[0]?.classList?.remove('lpx-scroll-container-height-auto')
    
        document.getElementsByTagName('html')[0]?.classList?.remove('html-ov-hid')
      }
    
      onDropDownClick() {
    
        setTimeout(() => {
    
          if (!this.dropDownOpen) {
    
            this.dropDownOpen = true;
    
            document.getElementsByClassName('lpx-scroll-container')[0]?.classList?.add('lpx-scroll-container-height-auto')
    
            document.getElementsByTagName('html')[0]?.classList?.add('html-ov-hid')
    
          }
    
        }, 100);
    
      }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hi again,

    please add this in CSS ->

    .lpx-scroll-container-height-auto{
    
      height: auto !important;
    
    }
    
    
    
    
    .html-ov-hid{
    
      overflow: hidden !important;
    
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.