mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(datetime): datetime no longer reports having a value if none is set (#18541)
fixes #17979 fixes #18540
This commit is contained in:
committed by
Liam DeBeasi
parent
22ac160021
commit
45b82dc466
@ -565,8 +565,7 @@ export class Datetime implements ComponentInterface {
|
||||
}
|
||||
|
||||
private hasValue(): boolean {
|
||||
const val = this.datetimeValue;
|
||||
return Object.keys(val).length > 0;
|
||||
return this.text !== undefined;
|
||||
}
|
||||
|
||||
private setFocus() {
|
||||
|
||||
Reference in New Issue
Block a user