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 (#40941)

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

* fix: 删除多选模不能使用 displayRender 提示
  • Loading branch information
crazyair authored Feb 27, 2023
1 parent e4b8593 commit c4273ec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/cascader/index.tsx
Original file line number Diff line number Diff line change
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 c4273ec

Please sign in to comment.