Skip to content

Commit c2f74d6

Browse files
committed
fix(RangePicker): fix active bar alignment (vueComponent#8221)
1 parent aa211fd commit c2f74d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/vc-picker/RangePicker.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,11 @@ function RangerPicker<DateType>() {
413413
const { width: panelDivWidth } = useElementSize(panelDivRef);
414414
const { width: arrowWidth } = useElementSize(arrowRef);
415415
const { width: startInputDivWidth } = useElementSize(startInputDivRef);
416-
const { width: separatorWidth } = useElementSize(separatorRef);
416+
const { width: separatorWidth } = useElementSize(
417+
separatorRef,
418+
{ width: 0, height: 0 },
419+
{ box: 'border-box' },
420+
);
417421
watch(
418422
[
419423
mergedActivePickerIndex,

0 commit comments

Comments
 (0)