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.

Using Hashtag and Mention plugin causes browser hang

See original GitHub issue

Hello,

So I was trying to add an Editor with by using both plugins Mention and Hashtag:

const mentionPlugin = createMentionPlugin({
    mentionPrefix: '@',
    entityMutability: 'IMMUTABLE'
});
const hashtagPlugin = createHashtagPlugin();
const { MentionSuggestions } = mentionPlugin;
const plugins = [hashtagPlugin,mentionPlugin];
<Editor
     editorState={ this.state.editorState }
     onChange={this.onChange}
     plugins={plugins}
      ref="editor"
/>
 <MentionSuggestions
       onSearchChange={ this.onSearchChange }
         suggestions={ this.state.suggestions }
/>
  • Normal behavior if you don’t write hashtag at the beginning of line :

Normal

  • Browser will hang if you try to write hashtag at the beginning of line/text

Error

I also has same issues with #168 as well.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
5c0rcommented, Jun 26, 2016

@nikgraf : Working on it 😄

0reactions
nikgrafcommented, Jun 29, 2016

no worries @nmt1994 - glad you found the issue 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Query monitor causing Chrome to freeze on tab close
Basically with Query Monitor activated, closing my sites tabs on Chrome has a massive delay and causes the browser to freeze temporarily.
Read more >
Instagram Feed WordPress Plugin Change Log - Smash Balloon
* Fix: Fixed a bug that cause an inability to connect multiple new sources under certain circumstances. * Fix: Browser would crash when...
Read more >
Cannot get entityMap using @draft-js-plugins/linkify & hashtag ...
The link entity only working if I paste the URL directly on the editor. Mention is working fine but the hashtag or URL...
Read more >
Instagram Assistant Frequently Asked Questions - INSSIST
Inssist stands for Instagram Assistant. It is a powerful Chrome Extension (plugin) and a standalone app that brings Instagram Mobile View to your...
Read more >
93 Free Twitter Tools & Apps That Do Pretty Much Everything
Log in to follow a specific hashtag, hang out in a room that collects the hashtagged tweets for you, and reply as you...
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