draft-js-plugins: [draftjs-mention-plugin] MentionSuggestions popover is not triggering immediately after mentionTrigger until some text is added.

Hi Guys,

I am getting an issue with MentionSuggestions Popover. For the first time MentionSuggestions popover open immediately after mentionTrigger but for the next time mentionTrigger is not triggering the MentionSuggestions popover until you need to type some text.

Here is my plugin config:

createMentionPlugin({
   	positionSuggestions,
   	mentionPrefix: '@',
   	mentionTrigger: '@',
   	supportWhitespace: true,
   	entityMutability: 'IMMUTABLE',
   })

Please refer gif below untitled4

Can someone please help me on this.

Thanks in advance.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 19 (4 by maintainers)

Most upvoted comments

@m1n0s Any update on this? I really need this functionality too 😦

It seems a bit buggy also. Sometimes the popover does show instantly, sometimes it doesn’t.

See video: bug.mov.zip

It seems like adding a mention will stop it working with only the symbol, and clearing the field will make it work again?? But no idea what’s really going on.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Looks like this happens when one sets supportWhitespace to true 🤔 Did you find a solution in the end @Mangaraju-Velpula?