fix(ui): remove getPopupContainer to prevent double scrollbar in drop…#38659
fix(ui): remove getPopupContainer to prevent double scrollbar in drop…#38659jaymasiwal wants to merge 1 commit intoapache:masterfrom
Conversation
Code Review Agent Run #d6e16aActionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Sequence DiagramThis PR removes custom popup container overrides so dropdown menus no longer render inside constrained modal parents. The select component now defaults to rendering in the document body, which avoids nested scrolling and eliminates double scrollbars. sequenceDiagram
participant User
participant DatabaseModal
participant Select
participant AntDesign
participant DocumentBody
User->>DatabaseModal: Open dropdown in database modal
DatabaseModal->>Select: Render select without popup container override
Select->>AntDesign: Resolve popup container to default
AntDesign->>DocumentBody: Render dropdown menu in document body
DocumentBody-->>User: Display dropdown with single scrollbar
Generated by CodeAnt AI |
User description
SUMMARY
Fixes the dual scrollbar issue in dropdown menus by removing custom
getPopupContaineroverrides that forced dropdowns to render inside constrained parent containers.Allowing Ant Design to render dropdowns in
document.body(default behavior) prevents nested scroll containers and resolves the double scrollbar problem.TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Fixes #35833
CodeAnt-AI Description
Prevent double scrollbar in dropdowns by rendering menus in document body
What Changed
Impact
✅ Fewer double scrollbars in dropdowns✅ Clearer dropdown lists in modals with long option sets✅ More consistent dropdown positioning across the app💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.