Skip to content

Commit 1bee78d

Browse files
dxvladislavvolkovdxvladislavvolkov
andauthored
Update currentConfig before setting values (T1054251) (#637)
* Build before test * Update currentConfig before setting values Co-authored-by: dxvladislavvolkov <[email protected]> Co-authored-by: dxvladislavvolkov <Vladila100500>
1 parent 5fe6a89 commit 1bee78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devextreme-react/src/core/options-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ class OptionsManager {
9999

100100
this.isUpdating = false;
101101
this.instance.off('optionChanged', optionChangedHandler);
102+
this.currentConfig = config;
102103

103104
changedOptions.forEach(([name, value]) => {
104105
const currentPropValue = config.options[name];
105106
if (config.options.hasOwnProperty(name) && currentPropValue !== value) {
106107
this.setValue(name, currentPropValue);
107108
}
108109
});
109-
this.currentConfig = config;
110110
this.instance.endUpdate();
111111
}
112112

0 commit comments

Comments
 (0)