Closed Bug 1962078 Opened 4 months ago Closed 4 months ago

Clicking the "Duplicate" button scrolls down to the bottom of the page

Categories

(bugzilla.mozilla.org :: User Interface, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: dkl)

Details

Attachments

(2 files)

Attached video Screen Recording

When I click the button to mark the bug as a duplicate the page suddenly jumps down to the bottom of the page so I have to scroll all the way back up in order to see the field. See the screen recording.

This is due to https://github.com/mozilla-bteam/bmo/blob/master/extensions/BugModal/web/bug_modal.js#L1179 which scrolls to the end of the page. This was probably implemented this way as the default bug view is to have the new comment textarea after all comments. So the duplicate form element would then be at the bottom of the page. When you have the new comment textarea above the comments, then of course this is not what you want to happen. I suggest we just remove the window.scroll() lines altogether. When you click on the DUPLICATE button, you are already in the right place to see the duplicate id form element. Both for the top and the bottom so IMO the window.scroll() is not necessary.

Assignee: nobody → dkl
Status: NEW → ASSIGNED

Authored by https://github.com/dklawren
https://github.com/mozilla-bteam/bmo/commit/f506011ddc1603282c41e0fb6af179b35aebf25a
[master] Bug 1962078 - Clicking the "Duplicate" button scrolls down to the bottom of the page

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: