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

Add new autoclose = TRUE param to dateInput() and dateRangeInput #1987

Merged
merged 2 commits into from Mar 23, 2018

Conversation

bborgesr
Copy link
Contributor

Closes #1969 and its much older duplicate, closes #173. I also made this option the default, since that seems to be the common use case. Here's a demo app:

library('shiny')

shinyApp(
  ui = fluidPage(
    dateInput("date1", label = "Autoclosing"), # new default
    dateInput("date2", label = "Manual closing", autoclose = FALSE),
    dateRangeInput("date3", label = "Autoclosing"), # new default
    dateRangeInput("date4", label = "Manual closing", autoclose = FALSE)
  ), 
  server = function(input, output, session) {}
)

@jcheng5 jcheng5 merged commit 66501da into master Mar 23, 2018
@jcheng5 jcheng5 deleted the barbara/date-autoclose branch March 23, 2018 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autoclose for Shiny dateInput dateInput Request. Option to automatically close calendar on date click
2 participants