@mmb-digital/ds-lilly 0.10.70 → 0.10.71

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.
Files changed (2) hide show
  1. package/dist/ds-lilly.js +10 -7
  2. package/package.json +1 -1
package/dist/ds-lilly.js CHANGED
@@ -120336,11 +120336,6 @@ var Multiselect = function (_a) {
120336
120336
  name: name,
120337
120337
  warning: warning
120338
120338
  };
120339
- Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
120340
- if (onSelectionChange) {
120341
- onSelectionChange(currentSelection);
120342
- }
120343
- }, [onSelectionChange, currentSelection]);
120344
120339
  var handleConfirmSelection = function () {
120345
120340
  onChange(currentSelection);
120346
120341
  };
@@ -120348,9 +120343,17 @@ var Multiselect = function (_a) {
120348
120343
  setCurrentSelection(function (prev) {
120349
120344
  var isSelected = prev.includes(itemValue);
120350
120345
  if (isSelected) {
120351
- return prev.filter(function (item) { return item !== itemValue; });
120346
+ var next_1 = prev.filter(function (item) { return item !== itemValue; });
120347
+ if (onSelectionChange) {
120348
+ onSelectionChange(next_1);
120349
+ }
120350
+ return next_1;
120351
+ }
120352
+ var next = prev.concat(itemValue);
120353
+ if (onSelectionChange) {
120354
+ onSelectionChange(next);
120352
120355
  }
120353
- return prev.concat(itemValue);
120356
+ return next;
120354
120357
  });
120355
120358
  };
120356
120359
  var handleVisibleChange = function (state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/ds-lilly",
3
- "version": "0.10.70",
3
+ "version": "0.10.71",
4
4
  "description": "MMB LILLY design system",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,