ywana-core8 0.0.244 → 0.0.245
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +3 -3
- package/src/html/textfield.test.js +12 -4
- package/src/widgets/login/LoginBox.test.js +11 -0
package/dist/index.umd.js
CHANGED
@@ -1034,8 +1034,8 @@
|
|
1034
1034
|
options = _props$options === void 0 ? [] : _props$options,
|
1035
1035
|
value = props.value,
|
1036
1036
|
onChange = props.onChange,
|
1037
|
-
_props$
|
1038
|
-
|
1037
|
+
_props$predictive = props.predictive,
|
1038
|
+
predictive = _props$predictive === void 0 ? false : _props$predictive,
|
1039
1039
|
_props$readOnly3 = props.readOnly,
|
1040
1040
|
readOnly = _props$readOnly3 === void 0 ? false : _props$readOnly3;
|
1041
1041
|
|
@@ -1060,7 +1060,7 @@
|
|
1060
1060
|
}, [value]);
|
1061
1061
|
|
1062
1062
|
function change(id, value) {
|
1063
|
-
if (
|
1063
|
+
if (predictive) {
|
1064
1064
|
setLabel(value);
|
1065
1065
|
} else {
|
1066
1066
|
if (onChange) onChange(id, value);
|
@@ -1093,7 +1093,7 @@
|
|
1093
1093
|
var canShow = open == true && Array.isArray(options);
|
1094
1094
|
|
1095
1095
|
if (canShow) {
|
1096
|
-
var filterActive =
|
1096
|
+
var filterActive = predictive === true && label && label.length > 0;
|
1097
1097
|
var items = filterActive ? options.filter(function (option) {
|
1098
1098
|
return option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0;
|
1099
1099
|
}) : options;
|