File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,14 @@ function warningProps(props: TreeSelectProps & { searchPlaceholder?: string }) {
36
36
warning ( ! Array . isArray ( value ) , '`value` should not be array when `TreeSelect` is single mode.' ) ;
37
37
}
38
38
39
- if ( maxCount && ( showCheckedStrategy === 'SHOW_ALL' || showCheckedStrategy === 'SHOW_PARENT' ) ) {
39
+ if (
40
+ maxCount &&
41
+ ( ( showCheckedStrategy === 'SHOW_ALL' && ! treeCheckStrictly ) ||
42
+ showCheckedStrategy === 'SHOW_PARENT' )
43
+ ) {
40
44
warning (
41
45
false ,
42
- '`maxCount` not work with `showCheckedStrategy=SHOW_ALL` or `showCheckedStrategy=SHOW_PARENT`.' ,
46
+ '`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.' ,
43
47
) ;
44
48
}
45
49
}
You can’t perform that action at this time.
0 commit comments