Skip to content

Commit 5bfc2fd

Browse files
committed
chore: update
1 parent 932f415 commit 5bfc2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PickerInput/Selector/RangeSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function RangeSelector<DateType extends object = any>(
189189
if (input) {
190190
const { offsetWidth, offsetLeft, offsetParent } = input.nativeElement;
191191
const parentWidth = (offsetParent as HTMLElement)?.offsetWidth || 0;
192-
const activeOffset = placementRight ? parentWidth - offsetWidth - offsetLeft : offsetLeft;
192+
const activeOffset = placementRight ? (parentWidth - offsetWidth - offsetLeft) : offsetLeft;
193193
setActiveBarStyle((ori) => ({
194194
...omit(ori, [prevOffsetUnit]),
195195
width: offsetWidth,

0 commit comments

Comments
 (0)