ywana-core8 0.0.140 → 0.0.141
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/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +2 -3
package/dist/index.modern.js
CHANGED
@@ -929,10 +929,6 @@ var DropDown = function DropDown(props) {
|
|
929
929
|
label = _useState2[0],
|
930
930
|
setLabel = _useState2[1];
|
931
931
|
|
932
|
-
var _useState3 = useState(),
|
933
|
-
filter = _useState3[0],
|
934
|
-
setFilter = _useState3[1];
|
935
|
-
|
936
932
|
useEffect(function () {
|
937
933
|
if (Array.isArray(options)) {
|
938
934
|
var option = options.find(function (option) {
|
@@ -946,7 +942,7 @@ var DropDown = function DropDown(props) {
|
|
946
942
|
console.log('dropdown change > canFilter:', canFilter, id, value);
|
947
943
|
|
948
944
|
if (canFilter) {
|
949
|
-
|
945
|
+
setLabel(value);
|
950
946
|
} else {
|
951
947
|
if (onChange) onChange(id, value);
|
952
948
|
}
|
@@ -980,7 +976,7 @@ var DropDown = function DropDown(props) {
|
|
980
976
|
if (canShow) {
|
981
977
|
var filterActive = canFilter && label && label.length > 0;
|
982
978
|
var items = filterActive ? options.filter(function (option) {
|
983
|
-
return canFilter === false ||
|
979
|
+
return canFilter === false || label.toUpperCase().indexOf(option.label.toUpperCase()) >= 0;
|
984
980
|
}) : options;
|
985
981
|
var lis = items.map(function (option) {
|
986
982
|
return /*#__PURE__*/React.createElement("li", {
|