Browse Source

fix: remove Cascader warning when use displayRender and multiple together (#40940)

pull/41286/head
叶枫 2 years ago
committed by GitHub
parent
commit
7a3c4921b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/cascader/index.tsx

6
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');

Loading…
Cancel
Save