Skip to content

Commit

Permalink
fix a bug with on complete style and git ignore update (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Oct 30, 2017
1 parent 77dbc01 commit bd02dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ build/Release
# Dependency directories
node_modules/
example/node_modules/
example/build/
jspm_packages/

# Typescript v1 declaration files
Expand Down
6 changes: 3 additions & 3 deletions src/utils/propsGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export default function propsGenerator(
style = willEnter ? endStyle : startStyle;
} else if (willUnmount) {
style = willLeave ? endStyle : startStyle;
} else if (willComplete && onCompleteStyle) {
style = onCompleteStyle;
transition = null;
} else if (reverseDelaySeconds && !startAnimation && played) {
style = willStart ? startStyle : endStyle;
} else if (willEnd || (startAnimation && !delaySeconds)) {
style = endStyle;
} else if (willComplete && onCompleteStyle) {
style = onCompleteStyle;
transition = null;
}

return {
Expand Down

0 comments on commit bd02dbe

Please sign in to comment.