carbon-react 114.12.2 → 114.12.3

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.
@@ -353,11 +353,6 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
353
353
 
354
354
  setTextValue("");
355
355
  const isAlreadySelected = actualValue.findIndex(val => isExpectedValue(val, newValue)) !== -1;
356
-
357
- if (!isAlreadySelected && isControlled.current && onChange) {
358
- onChange(createCustomEvent([...actualValue, newValue]));
359
- }
360
-
361
356
  textboxRef.focus();
362
357
  isMouseDownReported.current = false;
363
358
  updateValue(previousValue => {
@@ -367,7 +362,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
367
362
 
368
363
  return [...previousValue, newValue];
369
364
  });
370
- }, [createCustomEvent, onChange, textboxRef, actualValue, updateValue]);
365
+ }, [textboxRef, actualValue, updateValue]);
371
366
 
372
367
  function onSelectListClose() {
373
368
  setOpenState(false);
@@ -383,11 +383,6 @@ const MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
383
383
 
384
384
  setTextValue("");
385
385
  const isAlreadySelected = actualValue.findIndex(val => (0, _isExpectedValue.default)(val, newValue)) !== -1;
386
-
387
- if (!isAlreadySelected && isControlled.current && onChange) {
388
- onChange(createCustomEvent([...actualValue, newValue]));
389
- }
390
-
391
386
  textboxRef.focus();
392
387
  isMouseDownReported.current = false;
393
388
  updateValue(previousValue => {
@@ -397,7 +392,7 @@ const MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
397
392
 
398
393
  return [...previousValue, newValue];
399
394
  });
400
- }, [createCustomEvent, onChange, textboxRef, actualValue, updateValue]);
395
+ }, [textboxRef, actualValue, updateValue]);
401
396
 
402
397
  function onSelectListClose() {
403
398
  setOpenState(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "114.12.2",
3
+ "version": "114.12.3",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",