Feature/support enter to submit create or update transaction dialog form (#913)
* Support enter key press to submit form * Update changelog
This commit is contained in:
parent
d5c96d1cb7
commit
2b63f7e707
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Supported enter key press to submit the form of the create or edit transaction dialog
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed the date format of the date picker and support manual changes
|
- Fixed the date format of the date picker and support manual changes
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<form
|
<form
|
||||||
class="d-flex flex-column h-100"
|
class="d-flex flex-column h-100"
|
||||||
[formGroup]="activityForm"
|
[formGroup]="activityForm"
|
||||||
|
(keyup.enter)="activityForm.valid && onSubmit()"
|
||||||
(ngSubmit)="onSubmit()"
|
(ngSubmit)="onSubmit()"
|
||||||
>
|
>
|
||||||
<h1 *ngIf="data.activity.id" mat-dialog-title i18n>Update activity</h1>
|
<h1 *ngIf="data.activity.id" mat-dialog-title i18n>Update activity</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user