@megha-ui/react 1.3.129 → 1.3.130
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.
|
@@ -201,7 +201,6 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
201
201
|
const handleSelect = (value, columnKey, columnData) => {
|
|
202
202
|
var _a;
|
|
203
203
|
let _uniqueSeach = {};
|
|
204
|
-
console.log({ value, columnKey, columnData, uniqueSearch });
|
|
205
204
|
if (value === "all") {
|
|
206
205
|
if (((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
207
206
|
uniqueSearch[columnKey].every((item) => columnData.includes(item))) {
|
|
@@ -221,8 +220,8 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
221
220
|
_uniqueSeach = Object.assign(Object.assign({}, uniqueSearch), { [columnKey]: newValueArray });
|
|
222
221
|
setUniqueSearch(_uniqueSeach);
|
|
223
222
|
}
|
|
223
|
+
console.log({ _uniqueSeach, columnKey }); // --- IGNORE ---
|
|
224
224
|
onFilter(_uniqueSeach, columnKey);
|
|
225
|
-
setActiveSearchColumn((current) => current === columnKey ? null : current);
|
|
226
225
|
};
|
|
227
226
|
const menuOptions = [{ label: "Group by", groupBy: setGroupBy }];
|
|
228
227
|
const searchOptions = [
|
package/package.json
CHANGED