fix(datetime): fix placeholder not being respected (#17772)

This commit is contained in:
Liam DeBeasi
2019-03-13 11:07:06 -04:00
committed by GitHub
parent c551f891d3
commit 6939f7941f

View File

@ -542,6 +542,8 @@ 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; }
return renderDatetime(template, this.datetimeValue, this.locale);
}