@refinitiv-ui/efx-grid 6.0.164 → 6.0.166

Sign up to get free protection for your applications and to get access to all the features.
@@ -3835,14 +3835,16 @@ Grid.prototype._onPreDataSorting = function (e) {
3835
3835
  let sortCount = objs.length;
3836
3836
  for(let i = 0; i < sortCount; ++i) {
3837
3837
  let obj = objs[i];
3838
- let field = obj["field"] || "";
3838
+ let field = obj["field"] || ""; // This supports "sortBy" option (sort by another column)
3839
3839
  let colIndex = obj["colIndex"];
3840
3840
  let colDef = (colIndex >= 0) ? this.getColumnDefinition(colIndex) : null;
3841
3841
 
3842
3842
  let rowSorting = false;
3843
3843
  let sortLogic = null;
3844
3844
  if(colDef) {
3845
- field = colDef.getField(); // WARNING: Field and logic could be out of sync
3845
+ if(!field) {
3846
+ field = colDef.getField(); // WARNING: Field and logic could be out of sync
3847
+ }
3846
3848
  rowSorting = colDef.isRowSorting();
3847
3849
  sortLogic = colDef.getSorter();
3848
3850
  }
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.164"
72
+ "version": "6.0.166"
73
73
  }