-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to change the position of the calendar #1246
Comments
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. |
I'm so grateful for that! |
Unfortunately, placement does not work for me, nor does it work in the official examples. I would expect placement to force the popper to appear on the bottom, etc. |
Yep - as @benjaminkniaz says it doesn't |
@robhadfield turns out you have to add a modifier to force the position. This is where I found the modifiers:
|
Thanks a lot @benjaminkniaz , I'll give that a go. I ended up reverting to a dialog which really ruins the flow. EDIT: @benjaminkniaz - worked perfectly, thanks! |
Here's the settings that work for me:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jacky-ew Looks like a z-index issue between the picker and Calendar, try dropping your calendar down to |
Hi i think its better to set datepicker popper to have |
managed to solved it by adding z-index in div container instead, thank you @robhadfield |
Difficult to advise without seeing the live code but glad you got it working 👍 |
|
Wanted to add a little more detail to this. The
|
Added examples to show datepicker at down side https://infinitbility.com/how-to-show-bottom-in-react-datepicker |
it works form me. The DatePicker's calendar is shown on top and is prevented to be shown bottom. I used the following code added to the : |
I am also running into an issue with changing the position of the datepicker, however, I tried this method as well and nothing changed. is there another dependency that needs to be installed into my application in order for the popper props to work? |
The calendar is hidden on the smartphone.
Can you adjust the position?
The text was updated successfully, but these errors were encountered: