Skip to content
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

Keep calendar visible all the time #16

Closed
sofiageo opened this issue Sep 12, 2019 · 5 comments
Closed

Keep calendar visible all the time #16

sofiageo opened this issue Sep 12, 2019 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@sofiageo
Copy link

Hello, thanks for the library, it looks pretty nice.

I have a requirement where the calendar is part of a wizard, so I want to keep it open at all times, and make it use all of it's flexbox container, rather than being a popup. Is this currently possible with a property? Or maybe it's hard to implement, due to how the change of focus works?

Sorry that I had to open a ticket to ask a question, but I couldn't find any other forms of communication on the repository :)

@tresko
Copy link
Collaborator

tresko commented Sep 12, 2019

Thank you. You can change focus with "focusedInput" prop.

Here is an example: https://codesandbox.io/s/awesome-greider-kw3l8

@tresko tresko closed this as completed Sep 12, 2019
@sofiageo
Copy link
Author

sofiageo commented Sep 12, 2019

Thanks, the focus works, but my problem is that the position of the calendar is absolute so it messes up my layout. If I manually remove the absolute position from the developer tools it works perfect.

Do you think adding a property to change the absolute position behaviour would be a nice addition to the library?

@tresko
Copy link
Collaborator

tresko commented Sep 13, 2019

Sorry for the late answer. You can edit CSS properties with ThemeProvider.

Here is an example of your use case: https://codesandbox.io/s/suspicious-hertz-hd8jb

@tresko tresko reopened this Sep 13, 2019
@tresko tresko added the help wanted Extra attention is needed label Sep 13, 2019
@sofiageo
Copy link
Author

It works fine with ThemeProvider. Thanks for the example. I'm having an issue when passing a function to the reducer. The function is setFieldValue of the library Formik. When I do that, the calendar closes when I select the endDate. I will keep investigating what causes it to close.

I'm not sure I can help you much with implementing the additional property. I've only been using TS for a few days. But if you are not in a hurry I can give it a try next week.

@tresko
Copy link
Collaborator

tresko commented Sep 16, 2019

I'm not in a hurry, so you can try.

@tresko tresko closed this as completed Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants