Fix badge initial position jump bug

This commit is contained in:
afc163 2016-10-24 11:48:25 +08:00
parent ba227bbe54
commit 1da5490ab8
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -95,7 +95,7 @@
top: auto;
display: block;
position: relative;
transform: translateX(0);
transform: none!important;
}
}