Skip to content

Commit

Permalink
fix: don't show transition on first rendering #338
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 25, 2018
1 parent cd2a5d7 commit 47f2ec4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/_util/openAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function animate (node, show, done, type) {
height = node.offsetHeight
// not get offsetHeight when appear
// set it into raf get correct offsetHeight
if (type === 'appear' && height === 0) {
if (height === 0) {
appearRequestAnimationFrameId = raf(() => {
height = node.offsetHeight
node.style.height = '0px'
Expand Down Expand Up @@ -59,9 +59,6 @@ const animation = {
leave (node, done) {
return animate(node, false, done)
},
appear (node, done) {
return animate(node, true, done, 'appear')
},
}

export default animation

0 comments on commit 47f2ec4

Please sign in to comment.