@douyinfe/semi-ui 2.55.2 → 2.55.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.
@@ -69356,7 +69356,18 @@ class SelectFoundation extends foundation {
69356
69356
  const indexInSelectedList = selectedOptionList.findIndex(option => option.value === selectedValue);
69357
69357
  if (indexInSelectedList !== -1) {
69358
69358
  const option = selectedOptionList[indexInSelectedList];
69359
- selections.set(option.label, option);
69359
+ if (onChangeWithObject) {
69360
+ // Although the value is the same and can be found in selections, it cannot ensure that other items remain unchanged. A comparison is made.
69361
+ // https://github.com/DouyinFE/semi-design/pull/2139
69362
+ const optionCompare = Object.assign({}, propValue[i]);
69363
+ if (isEqual_default()(optionCompare, option)) {
69364
+ selections.set(option.label, option);
69365
+ } else {
69366
+ selections.set(optionCompare.label, optionCompare);
69367
+ }
69368
+ } else {
69369
+ selections.set(option.label, option);
69370
+ }
69360
69371
  } else {
69361
69372
  // The current value does not exist in the current optionList or the list before the change. Construct an option and update it to the selection
69362
69373
  let optionNotExist = {