diff --git a/components/cascader/index.jsx b/components/cascader/index.jsx index b89183f4f4..670a382ada 100644 --- a/components/cascader/index.jsx +++ b/components/cascader/index.jsx @@ -22,7 +22,7 @@ class AntCascader extends React.Component { } componentWillReceiveProps(nextProps) { if ('value' in nextProps) { - this.setState({ value: nextProps.value }); + this.setState({ value: nextProps.value || [] }); } } handleChange(value, selectedOptions) { diff --git a/package.json b/package.json index cdd9aac05f..29f2a38c17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "0.12.0-beta4", + "version": "0.12.0-beta5", "title": "Ant Design", "description": "一个 UI 设计语言", "homepage": "http://ant.design/",