From 1da5490ab8cd091a40338e845abe4a11552361a2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 24 Oct 2016 11:48:25 +0800 Subject: [PATCH] Fix badge initial position jump bug --- components/badge/ScrollNumber.tsx | 2 +- components/badge/style/index.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/badge/ScrollNumber.tsx b/components/badge/ScrollNumber.tsx index beebd79f3e..91d15293b0 100644 --- a/components/badge/ScrollNumber.tsx +++ b/components/badge/ScrollNumber.tsx @@ -96,7 +96,7 @@ export default class ScrollNumber extends Component { const childrenToReturn = []; for (let i = 0; i < 30; i++) { const currentClassName = (position === i) ? 'current' : null; - childrenToReturn.push(

{i % 10}

); + childrenToReturn.push(

{i % 10}

); } return childrenToReturn; } diff --git a/components/badge/style/index.less b/components/badge/style/index.less index 7ad3617571..3eb82bcd2c 100644 --- a/components/badge/style/index.less +++ b/components/badge/style/index.less @@ -95,7 +95,7 @@ top: auto; display: block; position: relative; - transform: translateX(0); + transform: none!important; } }