@megha-ui/react 1.2.224 → 1.2.225
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 = [...new Set(
|
|
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