ywana-core8 0.0.138 → 0.0.139
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -1
- package/src/html/textfield.js +2 -1
package/dist/index.cjs
CHANGED
@@ -937,7 +937,8 @@ var DropDown = function DropDown(props) {
|
|
937
937
|
setLabel = _useState2[1];
|
938
938
|
|
939
939
|
var _useState3 = React.useState(),
|
940
|
-
filter = _useState3[0]
|
940
|
+
filter = _useState3[0],
|
941
|
+
setFilter = _useState3[1];
|
941
942
|
|
942
943
|
React.useEffect(function () {
|
943
944
|
if (Array.isArray(options)) {
|
@@ -949,6 +950,8 @@ var DropDown = function DropDown(props) {
|
|
949
950
|
}, [value]);
|
950
951
|
|
951
952
|
function change(id, value) {
|
953
|
+
console.log('dropdown change > canFilter:', canFilter, id, value);
|
954
|
+
|
952
955
|
if (canFilter) {
|
953
956
|
setFilter(value);
|
954
957
|
} else {
|
@@ -2962,7 +2965,8 @@ var StringEditor = function StringEditor(_ref6) {
|
|
2962
2965
|
value: value,
|
2963
2966
|
onChange: change,
|
2964
2967
|
options: buildOptions(),
|
2965
|
-
readOnly: !editable
|
2968
|
+
readOnly: !editable,
|
2969
|
+
canFilter: true
|
2966
2970
|
}) : /*#__PURE__*/React__default["default"].createElement(TextField, {
|
2967
2971
|
outlined: outlined,
|
2968
2972
|
id: id,
|