Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Docs example 'Non-Linear Slider and Updatemode' doesn't render correctly in Dash 2.1 #1843

Closed
LiamConnors opened this issue Nov 25, 2021 · 1 comment · Fixed by #1857
Assignees

Comments

@LiamConnors
Copy link
Member

This Slider example: https://dash.plotly.com/dash-core-components/slider#non-linear-slider-and-updatemode has a functioning slider on the docs page.
image

Using Dash 2.1, and without any update to the example code, the slider no longer works.

image

I can't see any changes in the Slider's functioning that should cause this. step and marks are both provided.

@HammadTheOne HammadTheOne self-assigned this Nov 29, 2021
@HammadTheOne
Copy link
Contributor

HammadTheOne commented Dec 2, 2021

Just wanted to note - this example works if the min prop is set for the slider. The marks are actually broken in the existing 2.0 example as well, although the slider works. I'm adding a change to the slider so that an undefined min and max are determined if marks are set, but I think we should still update the example anyways:

    dcc.Slider(
        id='slider-updatemode',
        marks={i: '{}'.format(10 ** i) for i in range(4)},
        min=0  # missing in current example
        max=3,
        value=2,
        step=0.01,
        updatemode='drag'
    ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants