FIX: prevents trash button to get focus when submitting input on profile (PR #8198)

This is a default behavior for browsers to submit using first button which doesn’t have type="button" in a form when pressing enter inside an input.

GitHub

You’ve signed the CLA, jjaffeux. Thank you! This pull request is ready for review.

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/profile-images-disappear-when-using-keyboard-enter-return/131118/3

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/profile-images-disappear-when-using-keyboard-enter-return/131118/3

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/profile-images-disappear-when-using-keyboard-enter-return/131118/3

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/profile-images-disappear-when-using-keyboard-enter-return/131118/3