New bug template does not display on initial page load unless selecting a component even when one is selected
Categories
(bugzilla.mozilla.org :: Bug Creation/Editing, enhancement)
Tracking
()
People
(Reporter: mlobontiuroman, Assigned: dkl)
Details
Attachments
(1 file)
Please help with a tepmlate for the Focus for Android product with the following elements:
Steps to reproduce
Expected behavior
Actual behavior
Device information
Thank you!
*Note: if the "UI tests" component is selected, the template is displayed.
Assignee | ||
Comment 1•3 months ago
|
||
The default initial page load of the new bug page will automatically select the first component in the list. But if a new bug template is setup for a product or component, it does not display on the initial page load. This is do the the initial page load javascript executing before the DOM reflects that a component has been preselected by default. If you change the window.addEventListener('DOMContentReady') to window.addEventListener('load') it works properly and shows the new bug template on page load. But instead of changing that and maybe cause other issues, update the javascript to set component.selectedIndex to 0 (first component) when its value is -1 (nothing selected yet).
Comment 2•3 months ago
|
||
Comment 3•3 months ago
|
||
Authored by https://github.com/dklawren
https://github.com/mozilla-bteam/bmo/commit/7356b332e4fa88bff40d1d317f796851c3f049f1
[master] Bug 1977358 - New bug template does not display on initial page load unless selecting a component even when one is selected
Updated•3 months ago
|
Description
•