Skip to content

Commit

Permalink
fix(LoginForm): remove deprecated submit emitter
Browse files Browse the repository at this point in the history
submit emitter removed in favor of submission

BREAKING CHANGE:
submit emitter removed in favor of submission

ISSUES CLOSED: #1469
  • Loading branch information
benjamincharity committed Oct 25, 2019
1 parent 9ce0126 commit 5395a7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions terminus-ui/login-form/src/login-form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[formGroup]="loginForm"
fxLayout="column"
*ngIf="showForm"
(keydown.enter)="loginForm?.valid && submit.emit(loginForm?.value)"
(keydown.enter)="loginForm?.valid && submission.emit(loginForm?.value)"
>

<ts-input
Expand Down Expand Up @@ -59,7 +59,6 @@
buttonType="submit"
[showProgress]="inProgress || isRedirecting"
[isDisabled]="!loginForm?.valid"
(clicked)="submit.emit(loginForm?.value)"
(clicked)="submission.emit(loginForm?.value)"
tabindex="-1"
tabIndex="4"
Expand Down
1 change: 1 addition & 0 deletions terminus-ui/login-form/src/login-form.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
} from '@terminus/ngx-tools/testing';
import { sendInput } from '@terminus/ui/input/testing';
import { TsValidatorsServiceMock } from '@terminus/ui/validators/testing';

import { TsLoginFormComponent } from './login-form.component';
import { TsLoginFormModule } from './login-form.module';

Expand Down
11 changes: 0 additions & 11 deletions terminus-ui/login-form/src/login-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,6 @@ export class TsLoginFormComponent implements OnChanges {
@Input()
public triggerFormReset = false;

/**
* Emit an event on form submission
*/
// TODO: Rename to avoid conflict with native events: https://github.com/GetTerminus/terminus-ui/issues/1469
/**
* @deprecated Use 'submission' instead
*/
// tslint:disable-next-line: no-output-native
@Output()
public readonly submit: EventEmitter<TsLoginFormResponse> = new EventEmitter();

/**
* Emit an event on form submission
*/
Expand Down

0 comments on commit 5395a7b

Please sign in to comment.