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] - Dash 2.1 - Slider/RangeSlider - can't restrict selection to defined marks #1851

Closed
LiamConnors opened this issue Dec 2, 2021 · 3 comments · Fixed by #1857
Closed

Comments

@LiamConnors
Copy link
Contributor

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context

dash                 2.1

Describe the bug
In versions of Dash prior to 2.1, it was possible to create a Slider or RangeSlider that only allowed you to select values defined with marks.

From the docs:

"If slider marks are defined and step is set to None then the slider will only be able to select values that have been predefined by the marks. Note that the default is step=1, so you must explicitly specify None to get this behavior."
With Slider and RangeSlider i

This is not possible with Dash 2.1

Expected behavior

That it would be possible to create a Slider or RangeSlider that only allowed you to select values defined with marks.

@alexcjohnson
Copy link
Collaborator

(Just to be clear for anyone else watching this: There's no Dash 2.1 yet, this bug refers to Dash built off the current dev branch, so an early 2.1 candidate)

@snazzybunny
Copy link

Is there a way to test Dash 2.1?

@alexcjohnson
Copy link
Collaborator

@snazzybunny you can build it from source, off the tip of the dev branch, following the steps in https://github.com/plotly/dash/blob/dev/CONTRIBUTING.md#getting-started

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.

3 participants