From 354cee6c46bf6db7742c3bbae6879efdf28694a4 Mon Sep 17 00:00:00 2001 From: Vanalli Date: Thu, 22 May 2025 11:44:28 +0200 Subject: [PATCH 1/2] Update kendo.core.js Added check that date value is an empty object and return null --- src/kendo.core.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kendo.core.js b/src/kendo.core.js index a7ae0a9ac5b..c21eaafc104 100644 --- a/src/kendo.core.js +++ b/src/kendo.core.js @@ -1929,6 +1929,10 @@ function pad(number, digits, end) { var length; var tzoffset; + if(isEmpty(value)){ + return null; + } + if (value && value.indexOf("/D") === 0) { date = dateRegExp.exec(value); if (date) { From 7c57749cbe2ce3335aea72db1657a7f6485bd4af Mon Sep 17 00:00:00 2001 From: Vanalli Date: Thu, 22 May 2025 15:15:55 +0200 Subject: [PATCH 2/2] Update kendo.core.js created method isEmptyObject to test for js objects without any properties and changed logic in internalParseDate to check for blank of empty objects in the value passed in --- src/kendo.core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kendo.core.js b/src/kendo.core.js index c21eaafc104..9827cce17ff 100644 --- a/src/kendo.core.js +++ b/src/kendo.core.js @@ -257,6 +257,7 @@ export const __meta__ = { const isPresent = kendo.isPresent = (value) => value !== null && value !== undefined; const isBlank = kendo.isBlank = (value) => value === null || value === undefined; const isEmpty = kendo.isEmpty = (value) => value.length === 0; + const isEmptyObject = kendo.isEmptyObject = (value) => Object.keys(value).length === 0; const isString = kendo.isString = (value) => typeof value === 'string'; const isInteger = kendo.isInteger = (value) => Number.isInteger(value); const isNumeric = kendo.isNumeric = (value) => !isNaN(value - parseFloat(value)); @@ -1929,7 +1930,7 @@ function pad(number, digits, end) { var length; var tzoffset; - if(isEmpty(value)){ + if(isBlank(value) || isEmptyObject(value)){ return null; }