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.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$canFilter = props.canFilter,
1038
- canFilter = _props$canFilter === void 0 ? false : _props$canFilter,
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 (canFilter) {
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 = canFilter === true && label && label.length > 0;
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;