Skip to content

Commit 6aae772

Browse files
authored
fix(Cascader): fixed incorrect options caused by the value of dynamic settings (#3242)
1 parent 79c40a2 commit 6aae772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cascader/cascader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default class Cascader extends SuperComponent {
104104
stepIndex: items.length - 1,
105105
};
106106

107-
if (items.length > this.data.items.length) {
107+
if (JSON.stringify(items) !== JSON.stringify(this.data.items)) {
108108
Object.assign(setData, { items });
109109
}
110110

0 commit comments

Comments
 (0)