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

Uncaught TypeError: $element.data is not a function #79

Open
rahulrkr08 opened this issue Mar 26, 2018 · 2 comments
Open

Uncaught TypeError: $element.data is not a function #79

rahulrkr08 opened this issue Mar 26, 2018 · 2 comments

Comments

@rahulrkr08
Copy link

I am getting error when using below example,
Example:

<Select2 multiple data={['bug', 'feature', 'documents', 'discussion']}
                    value={ ['feature'] }
                    options={ { placeholder: 'search by tags' } }
                />

Error:
Uncaught TypeError: $element.data is not a function

Can anyone help ?

@rkit
Copy link
Owner

rkit commented Aug 28, 2018

I can't reproduce it.

@kipperek
Copy link

Probably You are importing wrapper like that:
import Select2 from 'Select2'
change it to:
import Select2 from 'react-select2-wrapper'

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

3 participants