0

I'm using rsuite DateRangePicker and the component is displayed on the right. When I open the menu to select a date, the menu get out of the page container and I have to scroll the page to the right in order to see the entire menu.

menu overflows

I'm looking for a way to change the position of this menu, any idea?

Leo
  • 13,428
  • 5
  • 43
  • 61
S.R
  • 75
  • 7

3 Answers3

1

You can set placement="auto" to auto adjust the menu position. More about placement usage, you can visit:https://rsuitejs.com/components/date-picker

superman66
  • 46
  • 4
1

DateRangePicker provides a placement property. You can set its value to bottomEnd or auto.

<DateRangePicker  placement="bottomEnd" />
Simon Guo
  • 83
  • 5
0

In my case I added placement='bottomEnd' and preventOverflow

<DateRangePicker
  size='md'
  placeholder='Select Date Range'
  block
  format='dd MMM yy'
  showOneCalendar
  placement='bottomEnd'
  preventOverflow
  ranges={Ranges}
  onChange={changeHandler}
/>

enter image description here

Oleg Zinchenko
  • 503
  • 7
  • 16