-
-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
Description
The default for mentions which can be used its suggestion example:
Mention.configure({
deleteTriggerWithBackspace: true,
suggestion:{
items: ({ query }: {query: string}) => {return ['item1','item2'] }
},
}),
And this will work perfectly, but when i want to add different chars for suggestion i need to use
Mention.configure({
deleteTriggerWithBackspace: true,
suggestions: [
{
items: ({ query }: {query: string}) => {return ['item1'] }
},
{
char: '#',
items: ({ query }: {query: string}) => {return ['item2'] }
}
]
}),
this one code wont be executed normally. I will get on '@' mention default mentions which are predefined in code. And i wont get any of mine both '@' and '#' not working.