Skip to content
This repository was archived by the owner on Feb 2, 2019. It is now read-only.

Fix inputs provisionned after init #40

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ng2-material/components/input/input.ts
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ export class MdInput {
}

get value(): string {
return !isBlank(this._value) ? this._value : '';
return this._value !== '' || !isBlank(this._value) ? this._value : '';
}

@Input()
@@ -119,4 +119,3 @@ export class MdInputContainer implements AfterContentInit, OnChanges {

}
}