Skip to content

Commit

Permalink
temp(*): add cascader item checked
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Nov 20, 2019
1 parent 4d0a156 commit 4a12b26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cascader/cascader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@ export default class Cascader extends Component {

if (multiple) {
props.checkable = !(canOnlyCheckLeaf && canExpand);
props.checked = value.indexOf(item.value) > -1;
props.checked =
value.indexOf(item.value) > -1 || !!item.checked;
props.indeterminate =
(checkStrictly || canOnlyCheckLeaf
? false
Expand Down

0 comments on commit 4a12b26

Please sign in to comment.