{"action":"created","issue":{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/298","repository_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins","labels_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/298/comments","events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/298/events","html_url":"https://github.com/draft-js-plugins/draft-js-plugins/issues/298","id":159083922,"number":298,"title":"Multiple Mention editors conflict","user":{"login":"tonypee","id":3086901,"avatar_url":"https://avatars.githubusercontent.com/u/3086901?v=3","gravatar_id":"","url":"https://api.github.com/users/tonypee","html_url":"https://github.com/tonypee","followers_url":"https://api.github.com/users/tonypee/followers","following_url":"https://api.github.com/users/tonypee/following{/other_user}","gists_url":"https://api.github.com/users/tonypee/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypee/subscriptions","organizations_url":"https://api.github.com/users/tonypee/orgs","repos_url":"https://api.github.com/users/tonypee/repos","events_url":"https://api.github.com/users/tonypee/events{/privacy}","received_events_url":"https://api.github.com/users/tonypee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-08T05:44:04Z","updated_at":"2016-06-21T00:45:50Z","closed_at":null,"body":"I have a component which creates a mention simple mention component. It is standalone, and works fine.\r\n\r\nWhen i iterate a list, and create multiple (i would be linking them to a list of rows) they conflict. When i @mention in the top componetn, the suggestions from the bottom component are displayed. then on arrow keys it disappears, never to show again. The only component to work in the last in the list (the corrosponding input to the suggestions that always show)\r\n\r\nWhen i input after it is broken, i get the error: Uncaught TypeError: Cannot read property 'getIn' of undefined \r\n\r\nfrom 'MentionSuggestions' at the line: return editorState.getBlockTree(blockKey).getIn([decoratorKey, 'leaves', leafKey]);\r\n\r\nHave you had issues with multiple components on the same page? (i realize that the example page has 2, but i dont see any options for id'ing them etc)"},"comment":{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/comments/227311169","html_url":"https://github.com/draft-js-plugins/draft-js-plugins/issues/298#issuecomment-227311169","issue_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/298","id":227311169,"user":{"login":"flgarrid","id":7031295,"avatar_url":"https://avatars.githubusercontent.com/u/7031295?v=3","gravatar_id":"","url":"https://api.github.com/users/flgarrid","html_url":"https://github.com/flgarrid","followers_url":"https://api.github.com/users/flgarrid/followers","following_url":"https://api.github.com/users/flgarrid/following{/other_user}","gists_url":"https://api.github.com/users/flgarrid/gists{/gist_id}","starred_url":"https://api.github.com/users/flgarrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flgarrid/subscriptions","organizations_url":"https://api.github.com/users/flgarrid/orgs","repos_url":"https://api.github.com/users/flgarrid/repos","events_url":"https://api.github.com/users/flgarrid/events{/privacy}","received_events_url":"https://api.github.com/users/flgarrid/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T00:45:50Z","updated_at":"2016-06-21T00:45:50Z","body":"I'm getting the following error when I create a new instance of the plugin:\r\n\r\n`React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).`\r\n\r\nIt happens when I call the second suggestion: \r\n`const { EmojiSuggestions2  } = emojiPlugin2;`\r\n\r\nAre you sure it is possible to create two instances?"}}
{"actor":{"display_login":"flgarrid"}}