Skip to content

Commit 2fb8a70

Browse files
authored
fix: arrow auto position (#351)
1 parent 84a6c6f commit 2fb8a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RangePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
899899
arrowLeft >
900900
panelDivRef.current.offsetWidth -
901901
arrowRef.current.offsetWidth -
902-
parseInt(arrowRef.current.style?.marginLeft || '0')
902+
(direction === 'rtl' ? 0 : arrowRef.current.offsetLeft)
903903
) {
904904
panelLeft = arrowLeft;
905905
}

0 commit comments

Comments
 (0)