fix(datetime): empty string is treated as no value (#26131)

resolves #26116
This commit is contained in:
Liam DeBeasi
2022-10-17 14:01:27 -05:00
committed by GitHub
parent 0548fe8588
commit 51ab5f67b5
4 changed files with 22 additions and 4 deletions

View File

@ -160,7 +160,8 @@ export class DatetimeButton implements ComponentInterface {
* to keep checking if the datetime value is `string` or `string[]`.
*/
private getParsedDateValues = (value?: string[] | string | null): string[] => {
if (value === undefined || value === null) {
// TODO FW-2646 Remove value === ''
if (value === '' || value === undefined || value === null) {
return [];
}