Skip to content

highlightedDates no longer works for airDatePicker() #532

@stibu81

Description

@stibu81

I can no longer highlight dates in airDatepickerInput() with shinyWidgets 0.7.2 and 0.7.3. This is a minimal example, where the dates are highlighted with updateAirDateInput():

library(shiny)
library(shinyWidgets)

ui <- fluidPage(
  airDatepickerInput("date",
                     value = Sys.Date() + 3,
                     minDate = Sys.Date(),
                     maxDate = Sys.Date() + 10,
                     highlightedDates = Sys.Date() + 1)
)

server <- function(input, output, session) {
  highlight_dates <- Sys.Date() + c(2, 5, 8)
  updateAirDateInput(inputId = "date",
                     options = list(highlightedDates = highlight_dates,
                                    maxDate = Sys.Date() + 15))
}

shinyApp(ui, server)

With shinyWidgets 0.7.1, the date picker looked like this:

image

But with the newer versions, the dots under the highlighted dates are gone:

image

The highlighting also does not work if it is done directly in airDatepickerInput().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions