From f09727638806b356d8682732ed42c55da6ad99c4 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 13 Mar 2019 11:46:56 -0400 Subject: [PATCH] fix(datetime): add additional checks for placeholders in angular (#17774) --- core/src/components/datetime/datetime.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index 0e8431b96e..5a3aff172e 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -542,7 +542,11 @@ export class Datetime implements ComponentInterface { // create the text of the formatted data const template = this.displayFormat || this.pickerFormat || DEFAULT_FORMAT; - if (this.value === undefined || this.value === null) { return; } + if ( + this.value === undefined || + this.value === null || + this.value.length === 0 + ) { return; } return renderDatetime(template, this.datetimeValue, this.locale); }