Skip to content

Commit

Permalink
fix: remove Cascader warning when use displayRender and multiple toge…
Browse files Browse the repository at this point in the history
…ther (ant-design#40941)

* fix: 删除多选模不能使用 displayRender 提示

* fix: 删除多选模不能使用 displayRender 提示
  • Loading branch information
crazyair authored and RedJue committed Apr 25, 2023
1 parent f0db8e5 commit e80b30a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/cascader/index.tsx
Expand Up @@ -175,12 +175,6 @@ const Cascader = React.forwardRef((props: CascaderProps<any>, ref: React.Ref<Cas

// =================== Warning =====================
if (process.env.NODE_ENV !== 'production') {
warning(
!multiple || !props.displayRender,
'Cascader',
'`displayRender` not work on `multiple`. Please use `tagRender` instead.',
);

warning(
!dropdownClassName,
'Cascader',
Expand Down

0 comments on commit e80b30a

Please sign in to comment.