@megha-ui/react 1.3.114 → 1.3.115

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.
@@ -399,7 +399,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
399
399
  : density === "compact"
400
400
  ? "2rem"
401
401
  : "2.5rem"})`,
402
- })), { position: "relative" }), style), children: [_jsxs("div", { style: Object.assign(Object.assign({}, ({ border: (_c = style === null || style === void 0 ? void 0 : style.border) !== null && _c !== void 0 ? _c : border })), { borderRadius: 4, display: "flex", alignItems: "center", justifyContent: "space-between", cursor: "pointer", width: width ? "100%" : "max-content", padding: "0.5rem" }), ref: clearIconRef, onClick: handleClick, children: [_jsx("span", { style: {
402
+ })), { position: "relative" }), style), children: [_jsxs("div", { style: Object.assign({ border: (_c = style === null || style === void 0 ? void 0 : style.border) !== null && _c !== void 0 ? _c : border }, { borderRadius: 4, display: "flex", alignItems: "center", justifyContent: "space-between", cursor: "pointer", width: width ? "100%" : "max-content", padding: "0.5rem" }), ref: clearIconRef, onClick: handleClick, children: [_jsx("span", { style: {
403
403
  display: isIcon
404
404
  ? withValue
405
405
  ? "inline-block"
@@ -94,10 +94,14 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
94
94
  return;
95
95
  }
96
96
  setMenuVisible("");
97
- setDropdownVisible("");
98
97
  setMenuPosition(null);
99
98
  setSearchOpsPosition(null);
100
- if (!target.closest(".column-search-outside-wrapper")) {
99
+ if (!target.closest(".column-search-outside-wrapper") &&
100
+ activeSearchColumn !== "") {
101
+ setActiveSearchColumn(null);
102
+ setDropdownVisible("");
103
+ }
104
+ else {
101
105
  setActiveSearchColumn(null);
102
106
  }
103
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.114",
3
+ "version": "1.3.115",
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.js",