Skip to content

Commit

Permalink
fix: Cascader can still be selected for the leaf option with disableC…
Browse files Browse the repository at this point in the history
…heckbox=true
  • Loading branch information
yinkaihui committed Oct 29, 2021
1 parent 95b785a commit bce08ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Cascader/panel/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ const ListPanel = <T extends OptionProps>(props: CascaderPanelProps<T>) => {
})
}
onClickOption={() => {
if (option.isLeaf && multiple) {
if (option.isLeaf && multiple && !option.disableCheckbox) {
onMultipleChecked(option, !option._checked);
} else {
onClickOption(option);
Expand Down

0 comments on commit bce08ab

Please sign in to comment.