@megha-ui/react 1.2.167 → 1.2.168
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.
|
@@ -754,7 +754,10 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
754
754
|
}, [filteredData, gridGroupBy, gridColumns]);
|
|
755
755
|
const handleSearch = (key, value, type) => {
|
|
756
756
|
setSearchQueries((prev) => (Object.assign(Object.assign({}, prev), { [key]: { text: value, type, operation: "and" } })));
|
|
757
|
-
setUniqueSearch((prev) =>
|
|
757
|
+
setUniqueSearch((prev) => {
|
|
758
|
+
delete prev[key];
|
|
759
|
+
return prev;
|
|
760
|
+
});
|
|
758
761
|
};
|
|
759
762
|
(0, react_1.useEffect)(() => {
|
|
760
763
|
const handleKeydown = (event) => {
|
package/package.json
CHANGED