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
mwc-slider does not snap to values corresponding to the step attribute (& visually represented by the markers attribute) if set to a non-integer #2109
Labels
Type: Bug
Something isn't working
Comments
I am working on the M2 implementation of slider right now, and this is fixed there. Keeping open until that is merged |
Thanks @e111077, this is good to know. Any tentative ETA ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If a non-integer is set to the
step
attribute ofmwc-slider
, the slider does not behavior correctly. When interacted with,mwc-slider
instances will skip non-integer values to the next integer.The UI toggable by
marker
&pin
has no problem respecting such values, making this behavior extremely confusing.This behavior occurs even when the initial minimum value is a non-integer valid within the
min
&max
of an instance.This behavior is completely deviant from
paper-slider
; the Material 1 version of this component.To Reproduce
Steps to reproduce the behavior:
mwc-slider
step
attribute to a non-integer (i.e.0.5
)markers
attribute ; optionally thepin
,min
&max
attributes to more clearly identify the problem (the latter two should have sensible bounds:Expected behavior
That the component can step to all possible values of the slider based on the
step
&max
attributes aligning with how the Material 1 version of this component,paper-slider
, behaves.Screenshots
Video demonstration of problem: https://user-images.githubusercontent.com/1223224/105733034-efe1b380-5ee5-11eb-88b1-70745eeac652.mov
Browser Version (please complete the following information):
Additional context
Discussed in detail w/ @dfreedm & @e111077
The text was updated successfully, but these errors were encountered: