This repository was archived by the owner on Nov 3, 2021. It is now read-only.
File tree 4 files changed +13
-6
lines changed
4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change
1
+ ### v1.1.1 (2015-10-21):
2
+
3
+ #### Bug fixes
4
+ * Fix for ` VelocityTransitionGroup ` not animating when no ` leave ` prop is set.
5
+ * Better detection of existing ` Velocity ` instances (thanks, @arush !).
6
+
1
7
### v1.1.0 (2015-10-08):
2
8
3
9
Updated peerDependencies and requires to React 0.14.
Original file line number Diff line number Diff line change 6
6
Read our [ announcement blog post] ( https://fabric.io/blog/introducing-the-velocityreact-library ) for
7
7
details about why and how we built this.
8
8
9
- ** Latest version:** 1.1.0 is updated to require React 0.14
9
+ ** Latest version:** v1.1.1 fixes a small bug with ` VelocityTransitionGroup ` when no ` leave ` is
10
+ provided. * Note: v1.1.0 and later require React 0.14.*
10
11
11
12
## Running the demo
12
13
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " velocity-react" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" : " React components to wrap Velocity animations" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ var VelocityTransitionGroup = React.createClass({
141
141
} ,
142
142
143
143
childWillEnter : function ( node , doneFn ) {
144
- if ( this . _shortCircuitAnimation ( doneFn ) ) return ;
144
+ if ( this . _shortCircuitAnimation ( this . props . enter , doneFn ) ) return ;
145
145
146
146
// By finishing a "leave" on the element, we put it in the right state to be animated in. Useful
147
147
// if "leave" includes a rotation or something that we'd like to have as our starting point, for
@@ -161,7 +161,7 @@ var VelocityTransitionGroup = React.createClass({
161
161
} ,
162
162
163
163
childWillLeave : function ( node , doneFn ) {
164
- if ( this . _shortCircuitAnimation ( doneFn ) ) return ;
164
+ if ( this . _shortCircuitAnimation ( this . props . leave , doneFn ) ) return ;
165
165
166
166
this . _leaving . push ( {
167
167
node : node ,
@@ -177,8 +177,8 @@ var VelocityTransitionGroup = React.createClass({
177
177
//
178
178
// Returns true if this did short circuit, false if lifecycle methods should continue with
179
179
// their animations.
180
- _shortCircuitAnimation : function ( doneFn ) {
181
- if ( document . hidden || ( this . _parseAnimationProp ( this . props . leave ) . animation == null ) ) {
180
+ _shortCircuitAnimation : function ( animationProp , doneFn ) {
181
+ if ( document . hidden || ( this . _parseAnimationProp ( animationProp ) . animation == null ) ) {
182
182
if ( this . isMounted ( ) ) {
183
183
doneFn ( ) ;
184
184
}
You can’t perform that action at this time.
0 commit comments