Skip to content

Range Slider renders incorrectly  #545

Closed
@einarsvan

Description

@einarsvan

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.3-1.4

Bug summary

When the range slider has values over 100 (the default) it will begin to render incorrectly. Specifically the left pos of <span class="color", will get a large negative value, making it break out of any container.

Specifics

See: https://uui.umbraco.com/?path=/story/uui-range-slider--aaa-overview&args=minGap:0;valueLow:1990;valueHigh:2000;min:1900;max:2023

The issue occurs in the set valueLow function.

On load, this function will never receive the correct high value for range slider, meaning it will end up setting a low value of 100 - this.step. This would usually be 99.
As the min value for the slider is much higher than 99 (for instance 1900), the left position of the thumb becomes a large negative number (eg -1400%).

The layout corrects itself if you change the valueLow after load, as it now will have the correct valueLow (eg 1991).

Steps to reproduce

Visit: https://uui.umbraco.com/?path=/story/uui-range-slider--aaa-overview&args=minGap:0;valueLow:1990;valueHigh:2000;min:1900;max:2023

Expected result / actual result

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds triageThis issue has not been tested by a team member yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions