Skip to content

Commit

Permalink
fix side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
markallenramirez committed Dec 6, 2024
1 parent 7370d8c commit e5cd33b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/devextreme/js/ui/shared/ui.editor_factory_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e5cd33b

Please sign in to comment.