sag_components 1.0.388 → 1.0.389
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.
|
@@ -170,11 +170,18 @@ var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
var onChangeHandler = function onChangeHandler(event, newValue) {
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
var _newValue$map;
|
|
174
|
+
var newSelectedOptionsSet = new Set((_newValue$map = newValue === null || newValue === void 0 ? void 0 : newValue.map(function (item) {
|
|
175
|
+
return item;
|
|
176
|
+
})) !== null && _newValue$map !== void 0 ? _newValue$map : []);
|
|
177
|
+
var newSelectedOptions = Array.from(newSelectedOptionsSet).map(function (item) {
|
|
178
|
+
return item;
|
|
179
|
+
});
|
|
180
|
+
console.log("newSelectedOptions", newValue, newSelectedOptions);
|
|
181
|
+
setSelectedOptionsState(newSelectedOptions);
|
|
175
182
|
onChange({
|
|
176
183
|
syntheticBaseEvent: event,
|
|
177
|
-
|
|
184
|
+
newSelectedOptions: newSelectedOptions
|
|
178
185
|
});
|
|
179
186
|
};
|
|
180
187
|
var isInputAllowed = function isInputAllowed(inputChar) {
|