From bef581b05a306d4288797a39161702398ec90e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Myo?= Date: Tue, 2 Feb 2016 17:51:05 +0100 Subject: [PATCH] Fix test if input value. (Add classic condition to isBlank function) --- ng2-material/components/input/input.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ng2-material/components/input/input.ts b/ng2-material/components/input/input.ts index 73d194c6..2f1c9db9 100644 --- a/ng2-material/components/input/input.ts +++ b/ng2-material/components/input/input.ts @@ -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 { } } -