x-ui-design 0.2.77 → 0.2.78

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.js CHANGED
@@ -3145,12 +3145,8 @@ const SelectComponent = /*#__PURE__*/React$1.forwardRef(({
3145
3145
  if (!disabled) {
3146
3146
  setIsOpen(!isOpen);
3147
3147
  }
3148
- const searchContent = document.getElementsByClassName(`${prefixCls}-tag-container`)?.[0];
3148
+ const searchContent = selectRef.current?.getElementsByClassName(`${prefixCls}-tag-container`)?.[0];
3149
3149
  if (searchContent) {
3150
- console.info({
3151
- clientWidth: searchContent.clientWidth,
3152
- searchContent
3153
- });
3154
3150
  setSearchInputWidth(searchContent.clientWidth - PADDING_TAG_INPUT);
3155
3151
  }
3156
3152
  const timeout = setTimeout(() => {