-
Notifications
You must be signed in to change notification settings - Fork 198
fix: modal body scrolling #10157
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
fix: modal body scrolling #10157
Conversation
📝 WalkthroughWalkthroughThe changes remove the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI_Component
participant Dialog
participant Overlay
User->>UI_Component: Opens modal/dialog
UI_Component->>Dialog: Render with isOpen, onClose, etc.
Dialog->>Overlay: Render overlay (pointerEvents: auto)
Overlay->>User: Allows pointer events
User->>Dialog: Interact with modal content
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Assessment against linked issues
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🧰 Additional context used🧠 Learnings (6)src/components/MultiHopTrade/components/TradeInput/components/HighlightedTokensCategoryDialog.tsx (3)Learnt from: NeOMakinG Learnt from: CR Learnt from: NeOMakinG src/components/ManageAccountsDrawer/components/DrawerWrapper.tsx (4)Learnt from: CR Learnt from: NeOMakinG Learnt from: NeOMakinG Learnt from: NeOMakinG src/components/MobileWalletDialog/MobileWalletDialog.tsx (2)Learnt from: NeOMakinG Learnt from: NeOMakinG src/components/MultiHopTrade/components/TradeInput/components/HighlightedTokensFiltersDialog.tsx (2)Learnt from: NeOMakinG Learnt from: CR src/components/Modals/ManageAccounts/ManageAccountsModal.tsx (2)Learnt from: NeOMakinG Learnt from: CR src/components/Modal/components/Dialog.tsx (2)Learnt from: CR Learnt from: NeOMakinG 🧬 Code Graph Analysis (4)src/components/MultiHopTrade/components/TradeInput/components/HighlightedTokensCategoryDialog.tsx (1)
src/components/MobileWalletDialog/MobileWalletDialog.tsx (1)
src/components/MultiHopTrade/components/TradeInput/components/HighlightedTokensFiltersDialog.tsx (1)
src/components/Modals/ManageAccounts/ManageAccountsModal.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
3afde69 to
1d9d154
Compare
NeOMakinG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Refactored the dialog component to prevent background interaction. This stuff is super fragile so please test thoroughly.
Removing
isDisablingPropagationseemed to have only positive side effects except it broke the manage accounts slide in drawer. For some reason when the drawer was rendered over the top of a modal that hasmodal={true}, it basically couldn't register any clicks and they went straight through to the modal beneath. From what I can tell the modal was setting pointer-events: none on the drawer. Hence my hack for pointer-events: auto.Issue (if applicable)
closes #10103
Risk
Medium, this could make dialogs behave funny which important. Note the scope of the change is mobile only.
Testing
Engineering
☝️
Operations
☝️
Screenshots (if applicable)
screen-20250731-155239.2.mp4
Summary by CodeRabbit
Bug Fixes
Refactor