What does this MR do?
Fixes the cancel button not working when uploading a file on the new issue page
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
Changelog entry added, if necessary
Tests added for this feature/bug
Has been reviewed by Frontend
Conform by the merge request performance guides
Conform by the style guides
Squashed related commits together
What are the relevant issue numbers?
closes #39512 (closed)