@refinitiv-ui/efx-grid 6.0.70 → 6.0.71

Sign up to get free protection for your applications and to get access to all the features.
@@ -24986,7 +24986,14 @@ VirtualizedLayoutGrid.prototype.getFirstIndexInView = function () {
24986
24986
 
24987
24987
  /** @inheritDoc */
24988
24988
  VirtualizedLayoutGrid.prototype.getLastIndexInView = function () {
24989
- return this._firstIndex + this._getInnerRowCount() - 1;
24989
+ var li = this._firstIndex + this._getInnerRowCount() - 1;
24990
+ var core = this._grid._getContext();
24991
+ var dv = core.getDataSource();
24992
+ var actualLastIndex = dv ? dv.getRowCount() - 1 : -1;
24993
+ if (li > actualLastIndex) { //Avoid incorrect index because the delay of row count synchronization after filtering
24994
+ return actualLastIndex;
24995
+ }
24996
+ return li;
24990
24997
  };
24991
24998
 
24992
24999
  /** @inheritDoc */
@@ -26102,7 +26109,7 @@ Core_Core.prototype._firstRendered = false;
26102
26109
  * @return {string}
26103
26110
  */
26104
26111
  Core_Core.getVersion = function () {
26105
- return "5.1.78";
26112
+ return "5.1.80";
26106
26113
  };
26107
26114
  /** {@link ElementWrapper#dispose}
26108
26115
  * @override