I have noticed that whenever you click on the label for any R Shiny sliderInput control, the window scrolls to the top of the page. To illustrate this, place a sliderInput further down on a page (e.g. after a large block of text or a chart, and then click its label. Page scrolls to top.
How do I suppress this behavior? I have a bunch of sliders for user to interact with, much further down on the page.. I do not want them to keep having to scroll back down just to interact with the next slider.
Minimum ui.R to reproduce (based on hello shiny welcome tutorial):
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
p('nothing in sidebar')
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot"),
p('Lorem Ipsum....'), #giant text block to trigger vertical scrollbars in browser.
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30)
)
)
))