Skip to content

Commit

Permalink
feat(form): form autocomplete may now be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed Aug 26, 2019
1 parent a80392c commit b70d404
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/lib/form/form/form.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

<form
[autocomplete]="autocomplete"
[formGroup]="form.control"
(ngSubmit)="onSubmit()">
<div class="igo-form-body" [ngClass]="{'igo-form-body-with-buttons': hasButtons}">
Expand Down
5 changes: 5 additions & 0 deletions packages/common/src/lib/form/form/form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export class FormComponent implements OnChanges {
*/
@Input() formData: { [key: string]: any};

/**
* Form autocomplete
*/
@Input() autocomplete: string = 'off';

/**
* Event emitted when the form is submitted
*/
Expand Down

0 comments on commit b70d404

Please sign in to comment.