Skip to content

Bug: Mention doesnt support miltiple suggestions attribute #282

@ToxicBlades

Description

@ToxicBlades

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions