We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932f415 commit 5bfc2fdCopy full SHA for 5bfc2fd
src/PickerInput/Selector/RangeSelector.tsx
@@ -189,7 +189,7 @@ function RangeSelector<DateType extends object = any>(
189
if (input) {
190
const { offsetWidth, offsetLeft, offsetParent } = input.nativeElement;
191
const parentWidth = (offsetParent as HTMLElement)?.offsetWidth || 0;
192
- const activeOffset = placementRight ? parentWidth - offsetWidth - offsetLeft : offsetLeft;
+ const activeOffset = placementRight ? (parentWidth - offsetWidth - offsetLeft) : offsetLeft;
193
setActiveBarStyle((ori) => ({
194
...omit(ori, [prevOffsetUnit]),
195
width: offsetWidth,
0 commit comments