From 08fab70f7a1bd128ee0abfc1d9b8de5835232c66 Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Wed, 18 May 2016 14:15:58 -0700 Subject: [PATCH] fix(input): inputs now work in IE11 closes #336 --- src/components/input/input.ts | 16 ++++++++-------- src/demo-app/input/input-demo.html | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/input/input.ts b/src/components/input/input.ts index 0b92e5570bb4..99d45f1ae130 100644 --- a/src/components/input/input.ts +++ b/src/components/input/input.ts @@ -142,17 +142,17 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange @Input() @BooleanFieldValue() autoFocus: boolean = false; @Input() @BooleanFieldValue() disabled: boolean = false; @Input() id: string = `md-input-${nextUniqueId++}`; - @Input() list: string; - @Input() max: string; - @Input() maxLength: number = -1; - @Input() min: string; - @Input() minLength: number; - @Input() placeholder: string; + @Input() list: string = null; + @Input() max: string = null; + @Input() maxLength: number = null; + @Input() min: string = null; + @Input() minLength: number = null; + @Input() placeholder: string = null; @Input() @BooleanFieldValue() readOnly: boolean = false; @Input() @BooleanFieldValue() required: boolean = false; @Input() @BooleanFieldValue() spellCheck: boolean = false; - @Input() step: number; - @Input() tabIndex: number; + @Input() step: number = null; + @Input() tabIndex: number = null; @Input() type: string = 'text'; private _blurEmitter: EventEmitter = new EventEmitter(); diff --git a/src/demo-app/input/input-demo.html b/src/demo-app/input/input-demo.html index 6acaf024faaa..bd79e8ccf017 100644 --- a/src/demo-app/input/input-demo.html +++ b/src/demo-app/input/input-demo.html @@ -60,7 +60,7 @@ - Hello , + Hello , how are you?