Skip to content

Commit 7db3e34

Browse files
committed
Avoid undefined className when ProgressBar mode is determinate
1 parent a9518b6 commit 7db3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/progress_bar/ProgressBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ProgressBar extends Component {
8282
render() {
8383
const { className, disabled, max, min, mode, multicolor, type, theme, value } = this.props;
8484
const _className = classnames(theme[type], {
85-
[theme[mode]]: mode,
85+
[theme.indeterminate]: mode === 'indeterminate',
8686
[theme.multicolor]: multicolor,
8787
}, className);
8888

0 commit comments

Comments
 (0)