diff --git a/docs/examples/range.tsx b/docs/examples/range.tsx index bbee0b8b6..1b137c8b0 100644 --- a/docs/examples/range.tsx +++ b/docs/examples/range.tsx @@ -37,7 +37,6 @@ export default () => { value, onChange, onCalendarChange, - placement: 'topRight', }; const rangePickerRef = React.useRef(null); diff --git a/src/PickerInput/Popup/index.tsx b/src/PickerInput/Popup/index.tsx index 8d1722665..4a145643a 100644 --- a/src/PickerInput/Popup/index.tsx +++ b/src/PickerInput/Popup/index.tsx @@ -208,7 +208,8 @@ export default function Popup(props: PopupProps(props: PopupProps {/* Watch for container size */} diff --git a/src/PickerInput/Selector/RangeSelector.tsx b/src/PickerInput/Selector/RangeSelector.tsx index e0f7385e7..9836f1e9f 100644 --- a/src/PickerInput/Selector/RangeSelector.tsx +++ b/src/PickerInput/Selector/RangeSelector.tsx @@ -170,8 +170,8 @@ function RangeSelector( }); // ====================== ActiveBar ======================= - const placementRight = placement?.toLowerCase().endsWith('right') || rtl; - const offsetUnit = placementRight ? 'insetInlineEnd' : 'insetInlineStart'; + const placementRight = placement?.toLowerCase().endsWith('right'); + const offsetUnit = rtl ? 'insetInlineEnd' : 'insetInlineStart'; const [activeBarStyle, setActiveBarStyle] = React.useState({ position: 'absolute',