x-ui-design 0.2.76 → 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,7 +3145,7 @@ 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
3150
  setSearchInputWidth(searchContent.clientWidth - PADDING_TAG_INPUT);
3151
3151
  }