-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
autoclose for Shiny dateInput #1969
Comments
Hello, You can do it with the following code.
And the associated js code.
But if you render your daterange with a renderUI this will not work as it will load before the daterange (when document is ready). In this case you can do something like that.
But bsDatepicker does not seem to work in this case. I can make such code work e.g. disabling keyboard input with If you know a way that will be great. Cheers, Mathieu |
Hi All, The following works, albeit a little hacky, via Jquery:
See more info about this on my answer on stackoverflow: https://stackoverflow.com/questions/49389497/autoclose-date-range-input-shiny/49418687#49418687, It would be great if this could be added as an option in the dateRangeInput function of Shiny Thanks, Nima |
Seems like autoclose should probably be the default? How often do you want it to stay up once you've selected a date? |
Request: Is there a way we could provide an option to close the dateInput window when the user selects a date? I believe this corresponds to autoclose: true for bootstrap datepicker.
The text was updated successfully, but these errors were encountered: