Skip to content

[Bug]: non-deterministic slider rendering for value={undefined} #14696

Closed

Description

Package

@carbon/react

Browser

No response

Package version

1.38

React version

18.2

Description

Slider initially allows an undefined / empty value. However, once initialized, it cannot go back to this state.

We need to have a deterministic output when value is undefined, irrespective of wether slider had previously a non-undefined value or not.

Reproduction/example

https://stackblitz.com/edit/github-kdxgwv?file=src%2FApp.jsx

Steps to reproduce

  • Click Set 3 and Set 5. Slider gets new values.
  • Click reset to go back to initial state.
  • Observed: Slider doesn't change.

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

  • Status

    ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions