Skip to content

Commit 82fb089

Browse files
zerosratyujiayu02
and
yujiayu02
authored
fix: add null check of arrowRef.current (#644)
Co-authored-by: yujiayu02 <[email protected]>
1 parent 2412675 commit 82fb089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RangePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
870870
mergedActivePickerIndex &&
871871
startInputDivRef.current &&
872872
separatorRef.current &&
873-
panelDivRef.current
873+
panelDivRef.current &&
874+
arrowRef.current
874875
) {
875876
// Arrow offset
876877
arrowLeft = startInputDivRef.current.offsetWidth + separatorRef.current.offsetWidth;

0 commit comments

Comments
 (0)