x-ui-design 0.3.21 → 0.3.22

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.
package/dist/index.esm.js CHANGED
@@ -3209,7 +3209,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3209
3209
  }
3210
3210
  const searchContent = selectRef.current?.getElementsByClassName(`${prefixCls}-tag-container`)?.[0];
3211
3211
  if (searchContent) {
3212
- setSearchInputWidth(searchContent.clientWidth - PADDING_TAG_INPUT);
3212
+ setSearchInputWidth(searchContent.clientWidth - (hasMode ? PADDING_TAG_INPUT : 0));
3213
3213
  }
3214
3214
  const timeout = setTimeout(() => {
3215
3215
  const searchInput = document.getElementById(`${prefixCls}-search-tag-input`);