mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix cascader value
This commit is contained in:
parent
a7b2c2e348
commit
68443b61c0
@ -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) {
|
||||
|
@ -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/",
|
||||
|
Loading…
Reference in New Issue
Block a user