Skip to content

Commit 710d4a2

Browse files
committed
fix: fix jump panel
1 parent 6b29e0c commit 710d4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PickerInput/Popup/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function Popup<DateType extends object = any>(props: PopupProps<D
118118
setArrowOffset(nextArrowOffset);
119119

120120
// Container Offset
121-
if (containerWidth < selectorWidth) {
121+
if (containerWidth && containerWidth < selectorWidth) {
122122
const offset = rtl
123123
? wrapperRect.right - (activeInputRight - arrowWidth + containerWidth)
124124
: activeInputLeft + arrowWidth - wrapperRect.left - containerWidth;

0 commit comments

Comments
 (0)