react-select2-wrapper icon indicating copy to clipboard operation
react-select2-wrapper copied to clipboard

Uncaught TypeError: $element.data is not a function

Open rahulrkr08 opened this issue 7 years ago • 2 comments

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 ?

rahulrkr08 avatar Mar 26 '18 07:03 rahulrkr08

I can't reproduce it.

rkit avatar Aug 28 '18 16:08 rkit

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

kipperek avatar Oct 12 '18 12:10 kipperek