Skip to content

Commit

Permalink
fix(Badge): change count to -1 error, close #845
Browse files Browse the repository at this point in the history
  • Loading branch information
purple-force committed Jul 4, 2019
1 parent 2459716 commit a17e586
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/badge/sup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export default class Sup extends Component {

computeStyle(removeTransition, revert) {
const { prefix, count, overflowCount } = this.props;
if (count < 0) {
return;
}
const supNode = this.refs.sup;

if (supNode && dom.hasClass(supNode, `${prefix}badge-count`)) {
Expand Down

0 comments on commit a17e586

Please sign in to comment.