react-datepicker2
react-datepicker2 copied to clipboard
tether element falls out of the window even in desktop mode.
Hi, I still face some issue with the tether element falls out of the window even in desktop mode. https://pasteboard.co/JCBXGQF.png I look at some of the code and tether document and I check out the constraint property of tether component with attachment defined as together
Constraints allow you to control what happens when the tethered element would have to fall outside of a defined region to maintain the attachment.
You might want to allow the element to change its attachment, if doing so would keep more of it within its assigned region
By adding the pin option as true we can have the element more visible than going off-screen like this, I see this problem a lot in my new project cause I have many date inputs, at least I suggest adding this as an option. bitwise I can add this as a pull request.
Originally posted by @mashouf in https://github.com/mberneti/react-datepicker2/issues/56#issuecomment-735400623