We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b623bf3 commit 3767aebCopy full SHA for 3767aeb
src/tree-select/tree-select.ts
@@ -66,7 +66,7 @@ export default class TreeSelect extends SuperComponent {
66
67
if (multiple) {
68
const finalValue = this.data.value || this.data.defaultValue;
69
- if (!Array.isArray(finalValue[leafLevel])) {
+ if (finalValue[leafLevel] != null && !Array.isArray(finalValue[leafLevel])) {
70
throw TypeError('应传入数组类型的 value');
71
}
72
0 commit comments