Skip to content

Commit

Permalink
fix(cascader): change event is triggered unexpectedly when value-type…
Browse files Browse the repository at this point in the history
… is full (#3435)
  • Loading branch information
betavs authored Dec 26, 2024
1 parent 51888c4 commit 3134451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascader/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useContext = (
statusContext.treeNodes = nodes;
},
setValue: (val: CascaderValue, source: CascaderChangeSource, node?: TreeNodeModel) => {
if (isEqual(val, statusContext.scopeVal)) return;
if (isEqual(val, value)) return;
setInnerValue(val, { source, node });
},
setVisible: setPopupVisible,
Expand Down

0 comments on commit 3134451

Please sign in to comment.