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
- setSelectedOptionsState(newValue);
174
- console.log("newValue", newValue, selectedOptionsState[0]);
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
- newValue: newValue
184
+ newSelectedOptions: newSelectedOptions
178
185
  });
179
186
  };
180
187
  var isInputAllowed = function isInputAllowed(inputChar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.388",
3
+ "version": "1.0.389",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {