-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix: fix scroll focus #38439
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: fix scroll focus #38439
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (2 files, +3 -0)
|
| name={network.name} | ||
| iconSrc={iconSrc} | ||
| iconSize={AvatarNetworkSize.Md} | ||
| focus={false} |
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.
good fix. Does this mean we won't have focusing/scrolling to bottom if you have a network added in the bottom of the list?
E.g. if you've only selected TRON?
I think that this might be an acceptable
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.
Yes if you select TRON and re-open this modal; it will be already scrolled to top
Builds ready [14a6151]
UI Startup Metrics (1274 ± 112 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Fix scroll issue on network modal
Changelog
CHANGELOG entry: fix scroll issue on network modal.
Related issues
Fixes: #38145
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2025-12-01.at.16.11.10.mov
After
Screen.Recording.2025-12-01.at.16.09.28.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Sets
focus={false}onNetworkListItemacross custom and default network lists (including "All popular networks") to avoid auto-scroll on open.focus={false}onNetworkListItemin:custom-networks.tsxfor custom networks entries.default-networks.tsxfor each default network entry.default-networks.tsx"allPopularNetworks" aggregate item.Written by Cursor Bugbot for commit 14a6151. This will update automatically on new commits. Configure here.