@megha-ui/react 1.2.360 → 1.2.361

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.
@@ -144,19 +144,9 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
144
144
  const _options = isSort
145
145
  ? options
146
146
  .sort((a, b) => (a.label > b.label ? 1 : -1))
147
- .filter((option) => {
148
- console.log(option.label
149
- .toLowerCase()
150
- .includes(searchTerm.toLowerCase()), option.label, searchTerm);
151
- return option.label
152
- .toLowerCase()
153
- .includes(searchTerm.toLowerCase());
154
- })
155
- : options.filter((option) => {
156
- return option.label.toLowerCase().includes(searchTerm.toLowerCase());
157
- });
158
- console.log(options);
159
- setFilteredOptions(options);
147
+ .filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()))
148
+ : options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
149
+ setFilteredOptions(_options);
160
150
  const grouped = [];
161
151
  if (isGrouping) {
162
152
  const groups = [...new Set(options.map((opt) => opt.group))];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.360",
3
+ "version": "1.2.361",
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",