Skip to content

bs_tooltip is not working with dateRangeInput/dateInput in Shiny #60

Open

Description

@phileas-condemine

the package bsplus is great and easy to use but it seems it doesn't seem to handle dateRangeInput. Is that a bug ?

 Error in .tag_validate(tag, name = "div", class = "form-group shiny-input-container") : 
  class is: shiny-date-range-input form-group shiny-input-container, needs to be: form-group shiny-input-container 

It works perfectly with selectInput and most common inputs

Without tooltip it's OK, my code runs

## Only run examples in interactive R sessions
if (interactive()) {

  ui <- fluidPage(
    dateRangeInput("daterange1", "Date range:",
                   start = "2001-01-01",
                   end   = "2010-12-31")    
  )    ,
    selectInput("date", "Date:",
                   choices = c("me","you"))%>%
    shinyInput_label_embed(
      icon("question-circle") %>%
        bs_embed_tooltip(title = "choose your date range dude !")
    )


  shinyApp(ui, server = function(input, output) { })
}

with tooltip it doesn't...

## Only run examples in interactive R sessions
if (interactive()) {

  ui <- fluidPage(
    dateRangeInput("daterange1", "Date range:",
                   start = "2001-01-01",
                   end   = "2010-12-31")%>%
      shinyInput_label_embed(
        icon("question-circle") %>%
          bs_embed_tooltip(title = "choose your date range dude !")
      )    ,
    selectInput("date", "Date:",
                   choices = c("me","you"))%>%
    shinyInput_label_embed(
      icon("question-circle") %>%
        bs_embed_tooltip(title = "choose your date range dude !")
    )



  )

  shinyApp(ui, server = function(input, output) { })
}

It doesn't work with dateInput either...

https://stackoverflow.com/questions/55633392/r-bsplus-package-bs-tooltip-is-not-working-with-daterangeinput-dateinput-in-sh

Activity

  1. micahwilhelm commented on Apr 30, 2020

    @micahwilhelm

    Has anyone found a workaround for this bug?

  2. ijlyttle commented on May 17, 2020

    @ijlyttle
    Owner

    I think this can be fixed by making an internal validation-function a bit more lenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions