Skip to content

Commit f975563

Browse files
authored
Merge pull request #145 from bci-oss/fix/form-value-cleared-on-enter
Fix clearing form value on "enter" press (#144)
2 parents 0c66d91 + 29857b1 commit f975563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng-generate/components/form/generators/components/form/files/__name@dasherize__.component.html.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<% } %></section>
99

1010
<section class="form-actions" [class.disabled]="form.disabled">
11-
<button mat-flat-button (click)="onCancel()" data-test="<%= options.name %>-btn-cancel-form">Cancel</button>
12-
<button mat-flat-button color="primary" [disabled]="form.invalid" (click)="onSubmit(form)" data-test="<%= options.name %>-btn-submit-form">Submit</button>
11+
<button mat-flat-button (click)="onCancel()" data-test="<%= options.name %>-btn-cancel-form" type="button">Cancel</button>
12+
<button mat-flat-button color="primary" [disabled]="form.invalid" (click)="onSubmit(form)" data-test="<%= options.name %>-btn-submit-form" type="submit">Submit</button>
1313
</section>
1414
</form>

0 commit comments

Comments
 (0)