From e5cd33bf0da585d42975f6179dac3cc1e003ca88 Mon Sep 17 00:00:00 2001 From: Mark Allen Ramirez Date: Fri, 6 Dec 2024 19:41:14 +0800 Subject: [PATCH] fix side-effect --- packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js b/packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js index bc73c09becb3..5a458b13bbe5 100644 --- a/packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js +++ b/packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js @@ -51,7 +51,8 @@ const getTextEditorConfig = function(options) { const needDelayedUpdate = options.parentType === 'filterRow' || options.parentType === 'searchPanel'; const isInputOrKeyUpEvent = e.event && (e.event.type === 'input' || e.event.type === 'keyup'); const updateValue = function(e, notFireEvent) { - options && options.setValue(e.value, notFireEvent); + const value = isInputOrKeyUpEvent && e.value === '' ? null : e.value; + options && options.setValue(value, notFireEvent); }; clearTimeout(data.valueChangeTimeout);