Open ghost opened 6 years ago
I can confirm the same issue on Chrome. It works completely fine of Firefox though. Reproducible example:
library("shiny")
library("shinyBS")
library("shinyjs")
ui <- fluidPage(
shinyjs::useShinyjs(),
div(id = "divLorem", "Lorem ipsum dolor sit amet", tags$br(),
"consectetur adipiscing elit", tags$br(),
"Duis pulvinar nisi a consequat pretium."),
shiny::actionButton("btnHide", "Hide"),
shinyBS::bsTooltip("btnHide", "Hide the div")
)
server <- function(input, output) {
observeEvent(input$btnHide, {
shinyjs::disable("btnHide")
shinyjs::hide("divLorem", anim = TRUE)
})
}
shinyApp(ui, server)
Is there a workaround?
I have an issue that tooltips tend to stay open long after the mouse is gone from hovering over the button that the tooltip is attached to. Is there a way to code wise collapse all open tooltips? I know about removeTooltip(session, id = 'messagex') but I don't want to actually destroy them, just close them.
Cheers