Dustin Woods created TAP5-2068:
----------------------------------
Summary: Add type="button" to buttons used to close alerts
Key: TAP5-2068
URL: https://issues.apache.org/jira/browse/TAP5-2068
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.4
Reporter: Dustin Woods
Priority: Minor
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", {
"class": className
}, ["button.close", "\u00d7"], content);
To:
element = builder("div", {
"class": className
}, ["button.close", {
"type":"button"
}, "\u00d7"], content);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira