@douyinfe/semi-ui 2.58.0 → 2.59.0-alpha.0

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.
@@ -69161,7 +69161,7 @@ class SelectFoundation extends foundation {
69161
69161
  this._setDropdownWidth();
69162
69162
  const isDefaultOpen = this.getProp('defaultOpen');
69163
69163
  const isOpen = this.getProp('open');
69164
- const originalOptions = this._collectOptions();
69164
+ const originalOptions = this._collectOptions(false);
69165
69165
  this._setDefaultSelection(originalOptions);
69166
69166
  if (isDefaultOpen || isOpen) {
69167
69167
  this.open(undefined, originalOptions);
@@ -69214,10 +69214,13 @@ class SelectFoundation extends foundation {
69214
69214
  }
69215
69215
  }
69216
69216
  _collectOptions() {
69217
+ let needReposition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
69217
69218
  const originalOptions = this._adapter.getOptionsFromChildren();
69218
69219
  this._adapter.updateOptions(originalOptions);
69219
69220
  // Reposition the drop-down layer
69220
- this._adapter.rePositionDropdown();
69221
+ if (needReposition) {
69222
+ this._adapter.rePositionDropdown();
69223
+ }
69221
69224
  return originalOptions;
69222
69225
  }
69223
69226
  _setDefaultSelection(originalOptions) {