Skip to content

Commit

Permalink
Fix that progress value to 0 is removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wadahiro committed Jun 7, 2016
1 parent e00de8f commit a60d7ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/script/bulma/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export class ProgressBar extends React.Component<Props, void> {
const { value, max } = this.props;
const className = calcClassNames(this.props);

// Work-around for https://github.com/facebook/react/issues/6704
const v = value === 0 ? '' : value;
return (
<progress className={`progress ${className}`} value={String(value) } max={max}>
<progress className={`progress ${className}`} value={v} max={max}>
{this.props.children}
</progress>
);
Expand Down

0 comments on commit a60d7ca

Please sign in to comment.