Fix actions, etc.
This commit is contained in:
@@ -45,7 +45,9 @@ export default Component.extend({
|
||||
|
||||
actions: {
|
||||
|
||||
submit () {
|
||||
submit (evt) {
|
||||
evt.preventDefault();
|
||||
|
||||
if (!this.isValid) {
|
||||
alert('Invalid data. Please review and try again.');
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<form {{on "submit" this.submit}}>
|
||||
<form onsubmit={{action "submit"}}>
|
||||
<label>
|
||||
<p class="label">Contributor:</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user