oolib 2.190.3 → 2.190.4
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.
|
@@ -90,6 +90,10 @@ function DropdownMulti(_a) {
|
|
|
90
90
|
setSearchStringInParent: setSearchStringInParent,
|
|
91
91
|
searchStringInParent: searchStringInParent
|
|
92
92
|
}), searchString = _e[0], setSearchString = _e[1];
|
|
93
|
+
console.log({
|
|
94
|
+
optionsFn: optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
|
|
95
|
+
argsString: JSON.stringify(optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args),
|
|
96
|
+
});
|
|
93
97
|
var options = (0, react_1.useMemo)(function () {
|
|
94
98
|
var ops = (0, generateOptions_1.generateOptions)({
|
|
95
99
|
options: optionsProp,
|
|
@@ -97,6 +101,7 @@ function DropdownMulti(_a) {
|
|
|
97
101
|
theme: theme
|
|
98
102
|
// injectOtherOption,
|
|
99
103
|
});
|
|
104
|
+
console.log({ ops: ops });
|
|
100
105
|
var currentValue = value || [];
|
|
101
106
|
// rm the selectedOps from ops list (since they are shown anyway in the selectedops list)
|
|
102
107
|
return /*isTagsStyle ? ops : */ ops.filter(function (op) { return currentValue.every(function (v) { return v.value !== op.value; }); });
|
|
@@ -104,7 +109,7 @@ function DropdownMulti(_a) {
|
|
|
104
109
|
JSON.stringify(optionsProp), //we need this cuz options change from 'loading' to actual options in some cases
|
|
105
110
|
// showOptions
|
|
106
111
|
optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
|
|
107
|
-
optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args,
|
|
112
|
+
JSON.stringify(optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args),
|
|
108
113
|
value
|
|
109
114
|
]);
|
|
110
115
|
options = (0, react_1.useMemo)(function () {
|
|
@@ -5,6 +5,7 @@ var getAllOptionsFns_1 = require("./getAllOptionsFns");
|
|
|
5
5
|
var generateOptions = function (_a) {
|
|
6
6
|
var _b;
|
|
7
7
|
var options = _a.options, optionsFn = _a.optionsFn, theme = _a.theme /*injectOtherOption*/;
|
|
8
|
+
console.log('rerun generate options');
|
|
8
9
|
switch (true) {
|
|
9
10
|
case !!options:
|
|
10
11
|
return options;
|