Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.4
-
None
Description
Add type="button" to button used to close alerts so the enter key continues to submit the form if the alerts block is inside a form.
I don't know much about coffeescript but the javascript changes below makes it work for me.
From:
element = builder("div",
, ["button.close", "\u00d7"], content);
To:
element = builder("div",
, ["button.close",
{ "type":"button" }, "\u00d7"], content);