@megha-ui/react 1.2.766 → 1.2.767
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.
|
@@ -152,9 +152,12 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
152
152
|
bValue.toString().includes("-")) {
|
|
153
153
|
aValue = aValue.toString().split("-")[0];
|
|
154
154
|
bValue = bValue.toString().split("-")[0];
|
|
155
|
+
aValue = isNaN(parseFloat(aValue)) ? aValue : parseFloat(aValue);
|
|
156
|
+
bValue = isNaN(parseFloat(bValue)) ? bValue : parseFloat(bValue);
|
|
155
157
|
}
|
|
156
158
|
return aValue > bValue ? 1 : -1;
|
|
157
|
-
})
|
|
159
|
+
})
|
|
160
|
+
.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()))
|
|
158
161
|
: options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
159
162
|
setFilteredOptions(_options);
|
|
160
163
|
const grouped = [];
|
package/package.json
CHANGED