Clicking the "Duplicate" button scrolls down to the bottom of the page
Categories
(bugzilla.mozilla.org :: User Interface, defect)
Tracking
()
People
(Reporter: mossop, Assigned: dkl)
Details
Attachments
(2 files)
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.
Assignee | ||
Comment 1•4 months ago
|
||
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.
Comment 2•4 months ago
|
||
Comment 3•4 months ago
|
||
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
Description
•