mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
fix(datetime): allow values to be zero (#14480)
* fix(datetime): allow values to be zero * Using null check
This commit is contained in:
@ -11,7 +11,7 @@ export function renderDatetime(template: string, value: DatetimeData, locale: Lo
|
||||
const token = '{' + index + '}';
|
||||
const text = renderTextFormat(format.f, (value as any)[format.k], value, locale);
|
||||
|
||||
if (!hasText && text && (value as any)[format.k]) {
|
||||
if (!hasText && text && (value as any)[format.k] != null) {
|
||||
hasText = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user