-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Responsivizes the DayPicker container #83
Conversation
Wow, that was way quicker than I expected! Are you handling those three remaining tasks yourself, or saying you need help? |
It'll take a bit for me to fully get to it, but either is good. This step #1 was a proof of concept. @isaachinman if you would be interested in continuing the work, we would def be happy to accept the PR. :) I think the |
@majapw Trying to get your branch up and running so I can see how much work this will involve, but having CSS problems. No matter what |
@isaachinman What do mean by generating the |
Well it's certainly weird that the |
@isaachinman So in the setup:
I think the EDIT: try this new update with the |
0414bf4
to
04a3a16
Compare
@majapw any ideas how to solve the |
Sorry I have been traveling and it has significantly impacted my work here. @thj-dk my initial thought on the OutsideClickHandler issue would be just to wrap the input components and daypicker components separately and then when those are used with the tether the outside click logic is including in the pieces that are moved around in the dom individually. |
598686a
to
bde5ded
Compare
Okay so I think this works! I just put the Here are kind of the last bits to do (but they're small):
And then we'll be good to go! |
bde5ded
to
d377d64
Compare
a5605c2
to
bb6dc37
Compare
bb6dc37
to
c93d955
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems 👍
This PR addresses #80.
This pulls in http://tether.io/ which is a sweet library (thanks for the rec, @lencioni!). Basically it pins the DayPicker component to its scrollable parents on the right side and updates this tether if you resize the window.
There are a few things left to do:
OutsideClickHandler
working properly again. The tether restructures the DOM in such a way that the picker itself no longer is a child of the OutsideClickHandler.to: @lencioni @isaachinman