Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-mentions throwing React.createElement warning #131

Closed
wsmd opened this issue Nov 29, 2016 · 2 comments
Closed

react-mentions throwing React.createElement warning #131

wsmd opened this issue Nov 29, 2016 · 2 comments

Comments

@wsmd
Copy link

wsmd commented Nov 29, 2016

The components seems to work fine including autocompletion suggestions, mentions, etc... However, it keeps throwing the following warnings (see screenshots) as I interact with the element change, blur, focus.

image

import { MentionsInput, Mention } from 'react-mentions';

<MentionsInput
  className="CommentForm-input"
  value={this.state.body}
  placeholder="Write a comment"
  onChange={this.handleChange}
>
  <Mention
    trigger="@"
    data={MENTIONS_DATA}
    renderSuggestion={this.renderUserSuggestion}
    appendSpaceOnAdd
  />
</MentionsInput>

MENTIONS_DATA is just an array of the form [{ id, display }]

screen shot 2016-11-28 at 7 49 10 pm

screen shot 2016-11-28 at 7 50 18 pm

Is there anything I'm missing?

I'm using "react": "15.1.0"

@jfschwarz
Copy link
Contributor

jfschwarz commented Nov 29, 2016

This warning has been removed in React 15.3. Upgrade React to get rid of it.

For some more background, see: babel/babel#4416, facebook/react#7724

@wsmd
Copy link
Author

wsmd commented Nov 29, 2016

@jfschwarz thanks for the quick response. I'll give that a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants