Skip to content

Commit

Permalink
fix: react warnings (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Aug 28, 2024
1 parent 037fe23 commit fb01553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mentions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ const InternalMentions = forwardRef<MentionsRef, MentionsProps>(

rows = 1,

// Fix Warning: Received `false` for a non-boolean attribute `visible`.
// https://github.com/ant-design/ant-design/blob/df933e94efc8f376003bbdc658d64b64a0e53495/components/mentions/demo/render-panel.tsx
// @ts-expect-error
visible,
// Rest
...restProps
} = props;
Expand Down

0 comments on commit fb01553

Please sign in to comment.