Browse Source
fix: remove Cascader warning when use displayRender and multiple together (#40940)
pull/41286/head
叶枫
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
6 deletions
-
components/cascader/index.tsx
|
|
@ -176,12 +176,6 @@ const Cascader = React.forwardRef((props: CascaderProps<any>, ref: React.Ref<Cas |
|
|
|
'`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.', |
|
|
|
); |
|
|
|
|
|
|
|
warning( |
|
|
|
!multiple || !props.displayRender, |
|
|
|
'Cascader', |
|
|
|
'`displayRender` not work on `multiple`. Please use `tagRender` instead.', |
|
|
|
); |
|
|
|
|
|
|
|
// =================== No Found ====================
|
|
|
|
const mergedNotFoundContent = notFoundContent || (renderEmpty || defaultRenderEmpty)('Cascader'); |
|
|
|
|
|
|
|