Skip to content

Commit de2a9f2

Browse files
robertmesserlehansl
authored andcommitted
fix(input): inputs now work in IE11 (#469)
closes #336
1 parent f53ffdb commit de2a9f2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/input/input.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
143143
@Input() @BooleanFieldValue() autoFocus: boolean = false;
144144
@Input() @BooleanFieldValue() disabled: boolean = false;
145145
@Input() id: string = `md-input-${nextUniqueId++}`;
146-
@Input() list: string;
147-
@Input() max: string;
148-
@Input() maxLength: number = -1;
149-
@Input() min: string;
150-
@Input() minLength: number;
151-
@Input() placeholder: string;
146+
@Input() list: string = null;
147+
@Input() max: string = null;
148+
@Input() maxLength: number = null;
149+
@Input() min: string = null;
150+
@Input() minLength: number = null;
151+
@Input() placeholder: string = null;
152152
@Input() @BooleanFieldValue() readOnly: boolean = false;
153153
@Input() @BooleanFieldValue() required: boolean = false;
154154
@Input() @BooleanFieldValue() spellCheck: boolean = false;
155-
@Input() step: number;
156-
@Input() tabIndex: number;
155+
@Input() step: number = null;
156+
@Input() tabIndex: number = null;
157157
@Input() type: string = 'text';
158158
@Input() name: string = null;
159159

src/demo-app/input/input-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
<md-card class="demo-card">
6262
<md-card-title>
63-
Hello <md-input [(ngModel)]="name" type="string" placeholder="First name"></md-input>,
63+
Hello <md-input [(ngModel)]="name" type="text" placeholder="First name"></md-input>,
6464
how are you?
6565
</md-card-title>
6666
<md-card-content>

0 commit comments

Comments
 (0)