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 198c586 commit f11155aCopy full SHA for f11155a
src/PickerInput/Selector/RangeSelector.tsx
@@ -201,13 +201,8 @@ function RangeSelector<DateType extends object = any>(
201
[offsetUnit]: offset,
202
}));
203
const placementRight = placement?.toLowerCase().endsWith('right');
204
- const startOffset = placementRight
205
- ? parentElement?.offsetWidth - 20
206
- : 0;
207
- const endOffset = placementRight
208
- ? offsetWidth - 20
209
- : offset;
210
- onActiveOffset(activeIndex === 0 ? startOffset : endOffset);
+ const startOffset = placementRight ? parentElement?.offsetWidth : 0;
+ onActiveOffset(activeIndex === 0 ? startOffset : offset);
211
}
212
});
213
0 commit comments