mirror of https://github.com/ElemeFE/element
Cascader: fix default value is a string and cannot be deleted bug
parent
f14b5ba540
commit
3d8117c5be
|
@ -232,7 +232,8 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
dropDownVisible: false,
|
||||
checkedValue: this.value,
|
||||
// the value may be a string , causing the first deleting without the 'find' function
|
||||
checkedValue: typeof this.value === 'string' ? [this.value] : this.value,
|
||||
inputHover: false,
|
||||
inputValue: null,
|
||||
presentText: null,
|
||||
|
|
Loading…
Reference in New Issue