material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[LinearProgress] determinate mode calculates wrong value if min/max is set

Open marcel-ernst opened this issue 10 years ago • 0 comments

Problem Description

<LinearProgress mode="determinate" value={50} min={50} max={100} /> The ProgressBar should be 0%, the truth: 100%

<LinearProgress mode="determinate" value={75} min={50} max={100} /> The ProgressBar should be 50%, the truth: 150%

Versions

  • Material-UI: last
  • React: last
  • Browser: all

I figured out, that the function getRelativeValue returns a wrong value.

marcel-ernst avatar Apr 19 '16 12:04 marcel-ernst