@megha-ui/react 1.2.166 → 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) => (Object.assign(Object.assign({}, prev), { [key]: [] })));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.166",
3
+ "version": "1.2.168",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",