Skip to content

Commit

Permalink
fix(Cascader): fixed incorrect options caused by the value of dynamic…
Browse files Browse the repository at this point in the history
… settings (#3242)
  • Loading branch information
jarmywang authored Nov 4, 2024
1 parent 79c40a2 commit 6aae772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascader/cascader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class Cascader extends SuperComponent {
stepIndex: items.length - 1,
};

if (items.length > this.data.items.length) {
if (JSON.stringify(items) !== JSON.stringify(this.data.items)) {
Object.assign(setData, { items });
}

Expand Down

0 comments on commit 6aae772

Please sign in to comment.