Auto-close report issue modal after clicking submit button

I would like the modal to disappear after clicking the submit button. The modal only disappears after the notification is received and dismissed.