x-ui-design 0.5.34 → 0.5.36
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
|
@@ -2870,7 +2870,7 @@ const InputComponent = /*#__PURE__*/forwardRef(({
|
|
|
2870
2870
|
inputRef.current.setSelectionRange(start, end);
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
|
-
}));
|
|
2873
|
+
}), [ref]);
|
|
2874
2874
|
useEffect(() => {
|
|
2875
2875
|
setMaskValue(mask ? applyMask(stripMask(`${value ?? ''}`, mask, maskChar), mask, maskChar).masked : value ?? '');
|
|
2876
2876
|
}, [value, mask, maskChar]);
|
|
@@ -3313,7 +3313,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3313
3313
|
// @ts-expect-error
|
|
3314
3314
|
selectRef.current?.scrollTo(...args),
|
|
3315
3315
|
nativeElement: selectRef.current
|
|
3316
|
-
}));
|
|
3316
|
+
}), [ref]);
|
|
3317
3317
|
const handleMouseEnter = () => !disabled && selected?.length && setIsHover(true);
|
|
3318
3318
|
const handleMouseLeave = () => !disabled && setIsHover(false);
|
|
3319
3319
|
const handleClearInputValue = useCallback(() => {
|
|
@@ -3677,7 +3677,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3677
3677
|
setLastTagWidth(tag.offsetWidth);
|
|
3678
3678
|
}
|
|
3679
3679
|
currentWidth += tag.offsetWidth + PADDING_PLACEMENT;
|
|
3680
|
-
if (currentWidth
|
|
3680
|
+
if (currentWidth < containerWidth) {
|
|
3681
3681
|
count++;
|
|
3682
3682
|
} else {
|
|
3683
3683
|
break;
|