material-ui
material-ui copied to clipboard
[LinearProgress] determinate mode calculates wrong value if min/max is set
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.