fix(TransitionGroup): ignore comment node when warn (fix#869) (#875)
This commit is contained in:
parent
4cb3c5c49a
commit
0dba5d44e6
@ -9,6 +9,7 @@ import {
|
||||
} from './Transition'
|
||||
import {
|
||||
Fragment,
|
||||
Comment,
|
||||
VNode,
|
||||
warn,
|
||||
resolveTransitionHooks,
|
||||
@ -108,7 +109,7 @@ const TransitionGroupImpl = {
|
||||
child,
|
||||
resolveTransitionHooks(child, cssTransitionProps, state, instance)
|
||||
)
|
||||
} else if (__DEV__) {
|
||||
} else if (__DEV__ && child.type !== Comment) {
|
||||
warn(`<TransitionGroup> children must be keyed.`)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user