Add type=button to issue type selector close button to prevent premature submission
requested to merge 273580-when-selecting-issue-type-and-closing-the-dropdown-the-issue-gets-submitted-right-away into master
What does this MR do?
The close button on the "Issue Type" dropdown selector did not include type="button"
which meant that, when pressed, it would attempt to submit the form, as per the default behavior for the button
element. This could lead to premature submission of the create issue form, as reported here: #273580 (comment 438854497)
Screenshots (strongly suggested)
To verify:
- Open the new issue form
- Open the "Issue Type" dropdown
- Selecting a new issue type will probably close the dropdown
- Re-open the issue type dropdown and click the "X" close button at the top
- Ensure the form does not attempt to submit
Does this MR meet the acceptance criteria?
Conformity
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Related to #273580 (closed)
Edited by Jake Lear