Skip to content

Commit dfee018

Browse files
matthewdenobregahansl
authored andcommitted
feat(input): add support for spellcheck attribute (#316)
1 parent 8d77163 commit dfee018

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/input/input.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
[id]="id"
1616
[disabled]="disabled"
1717
[required]="required"
18+
[spellcheck]="spellcheck"
1819
[attr.maxlength]="maxLength"
1920
[type]="type"
2021
(focus)="onFocus()"

src/components/input/input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
138138
@Input() maxLength: number = -1;
139139
@Input() placeholder: string;
140140
@Input() @BooleanFieldValue() required: boolean = false;
141+
@Input() @BooleanFieldValue() spellcheck: boolean = false;
141142
@Input() type: string = 'text';
142143

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

0 commit comments

Comments
 (0)