Closed Bug 1977358 Opened 3 months ago Closed 3 months ago

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)

All
Android
enhancement

Tracking

()

RESOLVED FIXED

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.

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).

Assignee: nobody → dkl
Status: NEW → ASSIGNED
Summary: Template for Focus new bugs → New bug template does not display on initial page load unless selecting a component even when one is selected

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

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Component: General → Bug Creation/Editing
Product: Focus → bugzilla.mozilla.org
Version: Firefox 142 → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: