From dfee018976a4bf3fe8f37ce71a9aaba6af7eacb4 Mon Sep 17 00:00:00 2001 From: Matthew de Nobrega Date: Mon, 18 Apr 2016 00:25:32 +0200 Subject: [PATCH] feat(input): add support for spellcheck attribute (#316) --- src/components/input/input.html | 1 + src/components/input/input.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/input/input.html b/src/components/input/input.html index 3a45fd18cac8..3303da2895b9 100644 --- a/src/components/input/input.html +++ b/src/components/input/input.html @@ -15,6 +15,7 @@ [id]="id" [disabled]="disabled" [required]="required" + [spellcheck]="spellcheck" [attr.maxlength]="maxLength" [type]="type" (focus)="onFocus()" diff --git a/src/components/input/input.ts b/src/components/input/input.ts index bb44e0a10c6b..ada34c9a6d97 100644 --- a/src/components/input/input.ts +++ b/src/components/input/input.ts @@ -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; };