Skip to content

Commit

Permalink
Fix badge initial position jump bug
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 24, 2016
1 parent ba227bb commit 1da5490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/badge/ScrollNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class ScrollNumber extends Component<any, any> {
const childrenToReturn = [];
for (let i = 0; i < 30; i++) {
const currentClassName = (position === i) ? 'current' : null;
childrenToReturn.push(<p key={i} className={currentClassName}>{i % 10}</p>);
childrenToReturn.push(<p key={i.toString()} className={currentClassName}>{i % 10}</p>);
}
return childrenToReturn;
}
Expand Down
2 changes: 1 addition & 1 deletion components/badge/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
top: auto;
display: block;
position: relative;
transform: translateX(0);
transform: none!important;
}
}

Expand Down

0 comments on commit 1da5490

Please sign in to comment.