From 1cf7ab540483b09f41f91176eed18e8bef07001b Mon Sep 17 00:00:00 2001 From: Fin Hopkins Date: Thu, 9 May 2019 13:04:44 -0400 Subject: [PATCH] Adds a timeout prop to Transition in test Prevents a PropTypes warning. --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/velocity-transition-group.js | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e91919a..a885c97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### v1.4.3 (2019-05-09): + +Adds `timeout` prop to `Transition` in test to avoid a PropTypes warning. + ### v1.4.2 (2018-11-14): Uses a `` element in test/server mode to keep react-dom from warning diff --git a/package.json b/package.json index 66c0f75..cb69766 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "velocity-react", - "version": "1.4.2", + "version": "1.4.3", "description": "React components to wrap Velocity animations", "main": "index.js", "scripts": { diff --git a/src/velocity-transition-group.js b/src/velocity-transition-group.js index 4a1a3dd..54052a6 100644 --- a/src/velocity-transition-group.js +++ b/src/velocity-transition-group.js @@ -203,7 +203,8 @@ class VelocityTransitionGroup extends React.Component { // Wrapping in a no-op Transition to consume the props that // TransitionGroup gives its children. Fixes react-dom warnings // in test for those props appearing on divs and such. - child => child && React.createElement(Transition, {}, child) + child => + child && React.createElement(Transition, { timeout: 0 }, child) ) ); }