fix cascader value

This commit is contained in:
yiminghe 2016-01-06 11:45:47 +08:00
parent a7b2c2e348
commit 68443b61c0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class AntCascader extends React.Component {
} }
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
if ('value' in nextProps) { if ('value' in nextProps) {
this.setState({ value: nextProps.value }); this.setState({ value: nextProps.value || [] });
} }
} }
handleChange(value, selectedOptions) { handleChange(value, selectedOptions) {

View File

@ -1,6 +1,6 @@
{ {
"name": "antd", "name": "antd",
"version": "0.12.0-beta4", "version": "0.12.0-beta5",
"title": "Ant Design", "title": "Ant Design",
"description": "一个 UI 设计语言", "description": "一个 UI 设计语言",
"homepage": "http://ant.design/", "homepage": "http://ant.design/",