📜  react-datepicker 浮动位置 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:12.728000             🧑  作者: Mango

代码示例1
Have the same issue. Want to move it left depends on input position. Someone know how to do that ?).

This params will help you: 'auto', 'auto-left', 'auto-right', 'bottom', 'bottom-end', 'bottom-start', 'left', 'left-end', 'left-start', 'right', 'right-end', 'right-start', 'top', 'top-end', 'top-start'

Found params in src. You need to pass one of this values to popperPlacement props to the DatePicker component like that - .

Someone who knows how to contact with develop team tell them to update popperPlacement docs. It's not so clear to find this values. Thx.