ods-component-lib 1.18.159 → 1.18.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34572,7 +34572,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
34572
34572
|
var currentPageIndex = dataGridInstance.pageCount();
|
|
34573
34573
|
var currentTotalCount = currentPageIndex == 0 ? 50 : dataGridInstance.totalCount();
|
|
34574
34574
|
var newData = dataGridInstance === null || dataGridInstance === void 0 ? void 0 : (_dataGridInstance$get = dataGridInstance.getDataSource()) === null || _dataGridInstance$get === void 0 ? void 0 : _dataGridInstance$get.items();
|
|
34575
|
-
if ((!filterApplied && currentPageIndex == 1 || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
|
|
34575
|
+
if ((!filterApplied && currentPageIndex == 1 && currentTotalCount != totalUnfilteredCount.current || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
|
|
34576
34576
|
setHeaderFilterData(function (prevData) {
|
|
34577
34577
|
var uniqueValuesByColumn = {};
|
|
34578
34578
|
props.columns.forEach(function (col) {
|
|
@@ -34641,7 +34641,6 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
34641
34641
|
};
|
|
34642
34642
|
if (e.fullName.includes("sortOrder")) {
|
|
34643
34643
|
dataGrid.getScrollable().scrollTo(0);
|
|
34644
|
-
setHeaderFilterData([]);
|
|
34645
34644
|
}
|
|
34646
34645
|
if (e.fullName.includes("filterValue") || e.fullName.includes("filter") || e.fullName === "searchPanel.text") {
|
|
34647
34646
|
var active = updateFilterStatus();
|