You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking on the right arrow of a bs4Dash::carousel, the page jumps down, but the carousel is not triggered. The left arrow works as expected. You can view a live demonstration of this on the demo server.
I think the issue here is that for the right button, href and data-target are set incorrectly. From useful-items.R#L382, with added comments:
shiny::tagList(
# previousshiny::tags$a(
class="carousel-control-prev",
`data-target`= paste0("#", id),
href="#",
role="button",
`data-slide`="prev",
shiny::tags$span(
class="carousel-control-prev-icon",
`aria-hidden`="true"
),
shiny::tags$span(class="sr-only", "Previous")
),
# nextshiny::tags$a(
class="carousel-control-next",
# This is where `data-target` should be set# `data-target` = paste0("#", id),# href = "#",href= paste0("#", id), # this is the value that should be set for data-targetrole="button",
`data-slide`="next",
shiny::tags$span(
class="carousel-control-next-icon",
`aria-hidden`="true"
),
shiny::tags$span(class="sr-only", "Next")
)
)
The text was updated successfully, but these errors were encountered:
When clicking on the right arrow of a
bs4Dash::carousel
, the page jumps down, but the carousel is not triggered. The left arrow works as expected. You can view a live demonstration of this on the demo server.I think the issue here is that for the right button,
href
anddata-target
are set incorrectly. Fromuseful-items.R#L382
, with added comments:The text was updated successfully, but these errors were encountered: