Bug page auto-focuses (and scrolls to) comment Subject field, preventing scrolling
Bug #107376 reported by
Matthew Paul Thomas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
James Henstridge |
Bug Description
As of the latest rollout, all bug pages include this code:
<script type="text/
setFocusByName(
// --></script>
This auto-focuses the comment "Subject:" field (a field that probably shouldn't even exist) when the page loads. That's bad in three ways:
* browsers auto-scroll past the summary and description to the field, so you can't read what the bug is actually about without scrolling the page back yourself;
* you can't scroll the page back with the keyboard, because focus is in a text field;
* you can't tell what the problem is, because the field is hidden.
This JavaScript should be removed with a vengeance. :-)
Changed in malone: | |
importance: | Undecided → High |
Changed in malone: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
The view class for the form should set "initial_ focus_widget = None" if this is desired.