Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treeCheckStrictly, treeCheckable两属性都为true时,报错 #46

Closed
mosikoo opened this issue Feb 6, 2017 · 4 comments
Closed

Comments

@mosikoo
Copy link

mosikoo commented Feb 6, 2017

treeCheckStrictly, treeCheckable两属性都为true时,rc-animate会报错

错误显示

Animate.js:290 Uncaught Error: must set key for children at http://localhost:3000/dist/demo.js:2646:18 at Array.map (native) at Constructor.render (http://localhost:3000/dist/demo.js:2641:33) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (http://localhost:3000/node_modules/react/dist/react-with-addons.js:6336:34) at ReactCompositeComponentWrapper._renderValidatedComponent (http://localhost:3000/node_modules/react/dist/react-with-addons.js:6356:32) at ReactCompositeComponentWrapper.wrapper [as _renderValidatedComponent] (http://localhost:3000/node_modules/react/dist/react-with-addons.js:12883:21) at ReactCompositeComponentWrapper.mountComponent (http://localhost:3000/node_modules/react/dist/react-with-addons.js:5969:30) at ReactCompositeComponentWrapper.wrapper [as mountComponent] (http://localhost:3000/node_modules/react/dist/react-with-addons.js:12883:21) at Object.mountComponent (http://localhost:3000/node_modules/react/dist/react-with-addons.js:13617:35) at ReactDOMComponent.mountChildren (http://localhost:3000/node_modules/react/dist/react-with-addons.js:12222:44)

@yesmeck
Copy link
Member

yesmeck commented Feb 6, 2017

Please provide a re-producible demo: http://codepen.io/benjycui/pen/KgPZrE?editors=001

@mosikoo
Copy link
Author

mosikoo commented Feb 8, 2017

demo在这: http://codepen.io/mosikoo/pen/OWoBVr?editors=0011

treeCheckStrictly, treeCheckable 一起存在报错

@myqianlan
Copy link

两者存在 然后赋默认值的时候会报错

@yesmeck
Copy link
Member

yesmeck commented Feb 28, 2017

treeCheckStrictlytreeCheckable 同时为 ture 的是时候, labelInValue 会变成 truevalue 要写成 { value: '0-0-1-value', label: '0-0-1-label' } 的形式。

@yesmeck yesmeck closed this as completed Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants