@clayui/multi-select
Advanced tools
Comparing version 3.6.5 to 3.7.0
@@ -6,2 +6,8 @@ # Change Log | ||
## [3.7.0](https://github.com/liferay/clay/compare/@clayui/multi-select@3.6.5...@clayui/multi-select@3.7.0) (2020-08-31) | ||
### Features | ||
- **@clayui/multi-select:** improves the filter for case-sensitive or non-sequential characters ([27cb6ac](https://github.com/liferay/clay/commit/27cb6ac)) | ||
## [3.6.5](https://github.com/liferay/clay/compare/@clayui/multi-select@3.6.4...@clayui/multi-select@3.6.5) (2020-08-28) | ||
@@ -8,0 +14,0 @@ |
@@ -22,2 +22,4 @@ "use strict"; | ||
var _fuzzy = _interopRequireDefault(require("fuzzy")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -58,3 +60,3 @@ | ||
var defaultFilter = function defaultFilter(item, inputValue, locator) { | ||
return inputValue && item[locator.label].match(inputValue); | ||
return !!inputValue && _fuzzy.default.match(inputValue, item[locator.label]) !== null; | ||
}; | ||
@@ -61,0 +63,0 @@ |
{ | ||
"name": "@clayui/multi-select", | ||
"version": "3.6.5", | ||
"version": "3.7.0", | ||
"description": "ClayMultiSelect component", | ||
@@ -35,3 +35,4 @@ "license": "BSD-3-Clause", | ||
"@clayui/shared": "^3.2.3", | ||
"classnames": "^2.2.6" | ||
"classnames": "^2.2.6", | ||
"fuzzy": "^0.1.3" | ||
}, | ||
@@ -45,4 +46,3 @@ "peerDependencies": { | ||
"extends browserslist-config-clay" | ||
], | ||
"gitHead": "4d6a1e7627802a6fef0330b1737fd8e086986bd6" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
65506
984
11
+ Addedfuzzy@^0.1.3