Minimal reproducible example:
library("shiny")
library("shinyBS")
library("shinyjs")
ui <- fluidPage(
shinyjs::useShinyjs(),
shiny::actionButton("btnHide", "Disable"),
shinyBS::bsTooltip("btnHide", "Disable the div")
)
server <- function(input, output) {
observeEvent(input$btnHide, {
shinyjs::disable("btnHide")
})
}
shinyApp(ui, server)
The problem is that when a button is disabled when the tooltip is shown, the tooltip stays permanently visible even after the mouse is long off the button.
This seems to be a Chrome issue. Tested in Firefox, where it works fine.
How would I go about fixing the issue?