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.cjs
CHANGED
@@ -936,10 +936,6 @@ var DropDown = function DropDown(props) {
|
|
936
936
|
label = _useState2[0],
|
937
937
|
setLabel = _useState2[1];
|
938
938
|
|
939
|
-
var _useState3 = React.useState(),
|
940
|
-
filter = _useState3[0],
|
941
|
-
setFilter = _useState3[1];
|
942
|
-
|
943
939
|
React.useEffect(function () {
|
944
940
|
if (Array.isArray(options)) {
|
945
941
|
var option = options.find(function (option) {
|
@@ -953,7 +949,7 @@ var DropDown = function DropDown(props) {
|
|
953
949
|
console.log('dropdown change > canFilter:', canFilter, id, value);
|
954
950
|
|
955
951
|
if (canFilter) {
|
956
|
-
|
952
|
+
setLabel(value);
|
957
953
|
} else {
|
958
954
|
if (onChange) onChange(id, value);
|
959
955
|
}
|
@@ -987,7 +983,7 @@ var DropDown = function DropDown(props) {
|
|
987
983
|
if (canShow) {
|
988
984
|
var filterActive = canFilter && label && label.length > 0;
|
989
985
|
var items = filterActive ? options.filter(function (option) {
|
990
|
-
return canFilter === false ||
|
986
|
+
return canFilter === false || label.toUpperCase().indexOf(option.label.toUpperCase()) >= 0;
|
991
987
|
}) : options;
|
992
988
|
var lis = items.map(function (option) {
|
993
989
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|