question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vertical Slider has stopped working

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexcjohnsoncommented, Jun 10, 2019

@heartsmith I believe you want a boolean vertical=True, not a string vertical='True'

1reaction
Marc-Andre-Rivetcommented, Mar 7, 2019

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:

  • vertical slider works as expected
  • loading state works correctly with slider
  • minimally add a visual test for vertical slider

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found