@cashub/ui 0.13.1 → 0.13.2
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.
- package/package.json +1 -1
- package/select/Select.js +2 -2
package/package.json
CHANGED
package/select/Select.js
CHANGED
|
@@ -531,7 +531,7 @@ var Select = function Select(_ref) {
|
|
|
531
531
|
options.forEach(function (option) {
|
|
532
532
|
if (option.child && option.child.length > 0) {
|
|
533
533
|
var tmpFilteredChildOptions = option.child.filter(function (option) {
|
|
534
|
-
return option.text.toLowerCase().indexOf(search.toLowerCase()) !== -1;
|
|
534
|
+
return option.text.toLowerCase().indexOf(search.toLowerCase().trim()) !== -1;
|
|
535
535
|
});
|
|
536
536
|
|
|
537
537
|
if (tmpFilteredChildOptions.length > 0) {
|
|
@@ -539,7 +539,7 @@ var Select = function Select(_ref) {
|
|
|
539
539
|
child: tmpFilteredChildOptions
|
|
540
540
|
}));
|
|
541
541
|
}
|
|
542
|
-
} else if (option.text.toLowerCase().indexOf(search.toLowerCase()) !== -1) {
|
|
542
|
+
} else if (option.text.toLowerCase().indexOf(search.toLowerCase().trim()) !== -1) {
|
|
543
543
|
tmpFilteredOptions.push(option);
|
|
544
544
|
}
|
|
545
545
|
});
|