We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
const userMentions = users ? users.map((user) => ({ id: user.id, display: user.name })) : []; <MentionsInput value={''} onChange={() => {}}> <Mention trigger="@" data={userMentions} renderSuggestion={userMentions} /> </MentionsInput>
TS2322: Type '{ trigger: string; data: { id: string; display: string; }[]; renderSuggestion: { id: string; display: string; }[]; }' is not assignable to type 'IntrinsicAttributes & Pick<InferProps<{ onAdd: any; onRemove: any; renderSuggestion: any; trigger: any; markup: any; displayTransform: any; allowSpaceInQuery: any; isLoading: any; }>, "allowSpaceInQuery"> & InexactPartial<...> & InexactPartial<...>'. Property 'data' does not exist on type 'IntrinsicAttributes & Pick<InferProps<{ onAdd: any; onRemove: any; renderSuggestion: any; trigger: any; markup: any; displayTransform: any; allowSpaceInQuery: any; isLoading: any; }>, "allowSpaceInQuery"> & InexactPartial<...> & InexactPartial<...>'. 139 | {//>/} 140 | <MentionsInput value={''} onChange={() => {}}> 141 | | ^^^^ 142 | 143 | 144 |
TS2322: Type '{ trigger: string; data: { id: string; display: string; }[]; renderSuggestion: { id: string; display: string; }[]; }' is not assignable to type 'IntrinsicAttributes & Pick<InferProps<{ onAdd: any; onRemove: any; renderSuggestion: any; trigger: any; markup: any; displayTransform: any; allowSpaceInQuery: any; isLoading: any; }>, "allowSpaceInQuery"> & InexactPartial<...> & InexactPartial<...>'. Property 'data' does not exist on type 'IntrinsicAttributes & Pick<InferProps<{ onAdd: any; onRemove: any; renderSuggestion: any; trigger: any; markup: any; displayTransform: any; allowSpaceInQuery: any; isLoading: any; }>, "allowSpaceInQuery"> & InexactPartial<...> & InexactPartial<...>'. 139 | {//>/} 140 | <MentionsInput value={''} onChange={() => {}}>
141 | | ^^^^ 142 | 143 | 144 |
Workaround: "react-mentions": "^4.4.10",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
Workaround:
"react-mentions": "^4.4.10",
The text was updated successfully, but these errors were encountered: