diff --git a/components/cascader/index.jsx b/components/cascader/index.jsx index 841b4de4f..aca13e6c8 100644 --- a/components/cascader/index.jsx +++ b/components/cascader/index.jsx @@ -365,7 +365,7 @@ export default { 'fieldNames', ]) - let options = this.options + let options = props.options if (inputValue) { options = this.generateFilteredOptions(prefixCls) } diff --git a/components/vc-cascader/Cascader.jsx b/components/vc-cascader/Cascader.jsx index f8b38b2a9..87a70b1ef 100644 --- a/components/vc-cascader/Cascader.jsx +++ b/components/vc-cascader/Cascader.jsx @@ -92,13 +92,13 @@ export default { value (val, oldValue) { if (!shallowEqualArrays(val, oldValue)) { const newValues = { - value: oldValue || [], - activeValue: oldValue || [], + sValue: val || [], + sActiveValue: val || [], } // allow activeValue diff from value // https://github.com/ant-design/ant-design/issues/2767 if (hasProp(this, 'loadData')) { - delete newValues.activeValue + delete newValues.sActiveValue } this.setState(newValues) }