Skip to content

Commit

Permalink
feat(input): add support for spellcheck attribute (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdenobrega authored and hansl committed Apr 17, 2016
1 parent 8d77163 commit dfee018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/input/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[id]="id"
[disabled]="disabled"
[required]="required"
[spellcheck]="spellcheck"
[attr.maxlength]="maxLength"
[type]="type"
(focus)="onFocus()"
Expand Down
1 change: 1 addition & 0 deletions src/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
@Input() maxLength: number = -1;
@Input() placeholder: string;
@Input() @BooleanFieldValue() required: boolean = false;
@Input() @BooleanFieldValue() spellcheck: boolean = false;
@Input() type: string = 'text';

get value(): any { return this._value; };
Expand Down

0 comments on commit dfee018

Please sign in to comment.