mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 23:01:57 +08:00
fix(datetime): fix placeholder not being respected (#17772)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user