Skip to content

Slider does not work when maximum value exceeds 100 #836

Description

@ZackWard

When the slider is provided with a maximum value greater than 100, it miscalculates the length of the range progress bar. It uses the value of the slider as a percentage. For example, <Slider max={200} value={90} /> displays a range progress bar that is 90% wide (value interpreted as a percentage) instead of 45% wide.

image

Example repo: https://github.com/ZackWard/vigilant-octo-adventure/blob/main/src/app/page.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions