mirror of
https://github.com/discourse/discourse.git
synced 2025-02-15 07:45:02 +00:00
If a button is not of type button, pressing enter inside an `<input>` inside a `<form>` without the action attribute will trigger the first available `<button>` as most browsers default the type of an unspecified button to submit. This commit also prevents d-editor-modal to be filled when it's hidden.