@megha-ui/react 1.2.219 → 1.2.220

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.
@@ -361,7 +361,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
361
361
  alignItems: "start",
362
362
  width: "100%",
363
363
  }, children: _jsxs("span", { style: { marginLeft: "0.5rem" }, children: ["+ Create ", searchTerm] }) })] }, String(searchTerm))) : groupedOptions.length > 0 ? (groupedOptions.map((groupOption, gIndex) => (_jsxs("div", { children: [_jsx("div", { children: groupOption.groupedValue }), groupOption.options.map((option, index) => (_jsxs("li", { ref: (el) => {
364
- const refIndex = gIndex > 0 ? index : groupedOptions[gIndex - 1].options.length + index;
364
+ const refIndex = gIndex > 0 ? groupedOptions[gIndex - 1].options.length + index : index;
365
365
  optionRefs.current[refIndex] = el;
366
366
  }, onClick: (e) => onSelectChange
367
367
  ? handleItemSelect(option, option.disabled || false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.219",
3
+ "version": "1.2.220",
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",