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.modern.js
CHANGED
|
@@ -34548,7 +34548,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
34548
34548
|
var currentPageIndex = dataGridInstance.pageCount();
|
|
34549
34549
|
var currentTotalCount = currentPageIndex == 0 ? 50 : dataGridInstance.totalCount();
|
|
34550
34550
|
var newData = dataGridInstance === null || dataGridInstance === void 0 ? void 0 : (_dataGridInstance$get = dataGridInstance.getDataSource()) === null || _dataGridInstance$get === void 0 ? void 0 : _dataGridInstance$get.items();
|
|
34551
|
-
if ((!filterApplied && currentPageIndex == 1 || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
|
|
34551
|
+
if ((!filterApplied && currentPageIndex == 1 && currentTotalCount != totalUnfilteredCount.current || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
|
|
34552
34552
|
setHeaderFilterData(function (prevData) {
|
|
34553
34553
|
var uniqueValuesByColumn = {};
|
|
34554
34554
|
props.columns.forEach(function (col) {
|
|
@@ -34617,7 +34617,6 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
34617
34617
|
};
|
|
34618
34618
|
if (e.fullName.includes("sortOrder")) {
|
|
34619
34619
|
dataGrid.getScrollable().scrollTo(0);
|
|
34620
|
-
setHeaderFilterData([]);
|
|
34621
34620
|
}
|
|
34622
34621
|
if (e.fullName.includes("filterValue") || e.fullName.includes("filter") || e.fullName === "searchPanel.text") {
|
|
34623
34622
|
var active = updateFilterStatus();
|