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.
@@ -385,16 +385,11 @@ const SelectComponent = forwardRef<HTMLDivElement, SelectProps>(
385
385
  setIsOpen(!isOpen);
386
386
  }
387
387
 
388
- const searchContent = document.getElementsByClassName(
388
+ const searchContent = selectRef.current?.getElementsByClassName(
389
389
  `${prefixCls}-tag-container`
390
390
  )?.[0] as HTMLDivElement;
391
391
 
392
- if (searchContent) {
393
- console.info({
394
- clientWidth: searchContent.clientWidth,
395
- searchContent
396
- });
397
-
392
+ if (searchContent) {
398
393
  setSearchInputWidth(searchContent.clientWidth - PADDING_TAG_INPUT);
399
394
  }
400
395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-ui-design",
3
- "version": "0.2.77",
3
+ "version": "0.2.78",
4
4
  "license": "ISC",
5
5
  "author": "Gabriel Boyajyan",
6
6
  "main": "dist/index.js",