@megha-ui/react 1.2.223 → 1.2.224

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.
@@ -148,7 +148,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
148
148
  : options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
149
149
  const grouped = [];
150
150
  if (isGrouping) {
151
- const groups = options.map((opt) => opt.group);
151
+ const groups = [...new Set(...options.map((opt) => opt.group))];
152
152
  if (groups.length > 0) {
153
153
  groups.forEach((group) => {
154
154
  if (group) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.223",
3
+ "version": "1.2.224",
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",