question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
liamjohnstoncommented, Oct 21, 2019

@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.

1reaction
stale[bot]commented, Jan 23, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

z4o4z/draft-js-mention-plugin/CHANGELOG.md - UNPKG
82, - Introduced a new configuration option `mentionTrigger`. By default it is set to `@`. As before by default typing `@` will trigger...
Read more >
draftjs - Draft.js Mention Plugin is not working after rendering ...
If you override the editorState with a new created state you are removing all the decorators which were added by the plugins.
Read more >
How to Build a Dynamically Positioned Popover with Popper ...
Go to the blog post : https://www.elegantthemes.com/blog/di... The popper.js library is a powerful positioning engine for tooltips and ...
Read more >
Overlays | React-Bootstrap
A set of components for positioning beautiful overlays, tooltips, popovers, and anything else you need. Overview#. Things to know about the React-Bootstrap ...
Read more >
Popover | DotVVM Documentation
Usage & Scenarios. Adds a Bootstrap Popover functionality to a control. ... <bs:Popover Title="Title" Content="Content text" Placement="Right">
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found