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

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)
@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.
@Vannevelj Apologies for the late response. I believe I was linking to this line. https://github.com/draft-js-plugins/draft-js-plugins/blame/65d5e57de6f35dfa533c4e58fea4096a2edf23cf/draft-js-mention-plugin/src/MentionSuggestions/index.js#L133
Looks like this happens when one sets
supportWhitespaceto true 🤔 Did you find a solution in the end @Mangaraju-Velpula?