Vertical Slider has stopped working
See original GitHub issueHello, Vertical Sliders have stopped working (I think this happened in the most recent update, but am not certain) However, vertical RangeSlider’s still work in vertical mode. Thanks, Peter
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div(children=[
html.H1(children='Vertical Slider has stopped working.'),
html.Div([
dcc.Slider(
id='mhd_window_slider',
min=0.05,
max=1.4,
step=0.005,
value=0.5,
vertical=True,
)
], style={ 'width':'50px', 'height':'500px' }),
html.H1(children='Vertical RangeSlider still works.'),
html.Div([
dcc.RangeSlider(
id='mhd_clim_slider',
count=1,
min=0,
max=3,
step=0.01,
value=[0.02, 1],
vertical=True,
)
], style={ 'width':'50px', 'height':'500px' }),
])
if __name__ == '__main__':
app.run_server(debug=True)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Responsive flexbox vertical slider not working in chrome (min ...
I'm having trouble getting my vertical sliders to work in chrome. They work fine in firefox. Chrome doesn't seem to be calculating the ......
Read more >WordPress Slider Not Working? Here's How to Fix It
1. Slider Images Aren't Appearing ... You may find that your image slider is loaded but the slides are not showing. Sometimes the...
Read more >Learn How to Create a Vertical Slick Slider with Custom Dots ...
As you can see, learning how to create a vertical slick slider with custom dots and arrows is not a difficult task. Most...
Read more >Contain or resize Vertical Slick Slider Images?
The vertical images in my slider are assigning too much screen real estate, essentially causing the height of the slideshow to be too...
Read more >Carousel slider- some sliders displaying vertical - Themeco
There might be some HTML tag that has not been closed properly or something else which makes the Slider structure like this. I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@heartsmith I believe you want a boolean
vertical=True
, not a stringvertical='True'
This regression was introduced with the loading components work. The additional wrapper div is causing the issue: https://github.com/plotly/dash-core-components/blame/master/src/components/Slider.react.js#L24
The additional div is not present for the Range Slider https://github.com/plotly/dash-core-components/blob/master/src/components/RangeSlider.react.js#L25 hence the difference in behavior.
The wrapper is required to the loading component functionality to work as the
data-*
props to get passed down the the actual Slider – which is not a problem for the underlying RangeSlider.Expected resolution is:
As a temporary fix, the wrapper can have
display: initial;
applied to it and it.The probable fix on our side is also probably to apply
style={{display: 'initial'}}
unto the wrapper div.