==== What is the problem?
After loading an existing block with Namespace restrictions, when you open the Namespace menu you are automatically scrolled to the bottom of the form, out of sight of the menu.
When you open a dropdown, you may be automatically scrolled to the bottom of the form, out of sight of the menu.
Only seems to happen the first time. It also seems to be more prominent with smaller viewports and/or a higher zoom level.
See also {T390620}
==== Steps to reproduce problem
# Try using a smaller viewport, and/or increase the zoom level in your browser
# Go to Special:Block
# Choose a target
# Click "Add block"
# Create a block with at least one Namespace restriction. Submit
# Refresh the page
# Open the accordion and click "Edit" on the block you just created
# Click "Add more namespaces..." to open the Namespace menu
**Expected behaviour:** Screen remains where it is, perhaps scrolling so the menu is in view.
**Observed behaviour:** Screen scrolls to the bottom of the page.
==== Environment
**Browser:** Firefox 128.
**Wiki(s):** https://test.wikipedia.beta.wmflabs.org MediaWiki 1.44.0-alpha (64f67c1) 07:02, 6 March 2025.
==== Screenshots
{F58030332}
**Derived Requirement**
Ensure that when opening the Namespace menu on the Special:Block page after loading an existing block with Namespace restrictions, the screen does not scroll to the bottom of the page. The menu should remain in view.
**Test Artifact(s):**
====Test Steps
__Test Case 1: Ensure Screen Does Not Scroll When Opening Namespace Menu__
1. Open the Special:Block page on Wikipedia.
2. Choose a target user to block.
3. Open the "Active block" accordion and click "Add block."
4. Create a block with at least one Namespace restriction and submit it.
5. Refresh the page.
6. Reopen the "Active block" accordion and click "Edit" on the block you just created.
7. Click "Add more namespaces..." to open the Namespace menu.
8. ✅❓❌⬜ **AC1:** Confirm that the screen does not scroll to the bottom of the page and that the Namespace menu remains in view.
== QA Results - Test Wiki
| **AC** | **Status** | **Details** |
| ----- | ----- | ----- |
| 1 | | |