File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
packages/react-css-transition-replace Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 18
18
"dependencies" : {
19
19
"chain-function" : " ^1.0.0" ,
20
20
"dom-helpers" : " ^3.3.1" ,
21
- "prop-types" : " ^15.6.1" ,
22
- "warning" : " ^3.0.0"
21
+ "prop-types" : " ^15.6.1"
23
22
},
24
23
"peerDependencies" : {
25
24
"react" : " ^15.0.0 || ^16.0.0" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react'
2
2
import { findDOMNode } from 'react-dom'
3
3
import PropTypes from 'prop-types'
4
4
import chain from 'chain-function'
5
- import warning from 'warning'
6
5
7
6
import raf from 'dom-helpers/util/requestAnimationFrame'
8
7
@@ -233,12 +232,6 @@ export default class ReactCSSTransitionReplace extends React.Component {
233
232
234
233
storeChildRef ( child , key ) {
235
234
const isCallbackRef = typeof child . ref !== 'string'
236
- warning (
237
- isCallbackRef ,
238
- 'string refs are not supported on children of ReactCSSTransitionReplace and will be ignored. ' +
239
- 'Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute' ,
240
- )
241
-
242
235
return chain ( isCallbackRef ? child . ref : null , r => {
243
236
this . childRefs [ key ] = r
244
237
} )
You can’t perform that action at this time.
0 commit comments