From 68443b61c00d9cfc6f9c48325de4c49e5dbfca03 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Wed, 6 Jan 2016 11:45:47 +0800 Subject: [PATCH] fix cascader value --- components/cascader/index.jsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/",