TypeError: $element.select2 is not a function

Created on 31 March 2020, over 4 years ago
Updated 28 January 2021, over 3 years ago

I'm seeing this error on the detach() method being run in our JS.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ΎBelarus rahunak

    I think you forgot add select2 library.
    as example in hook_form_alter use this:
    $form['#attached']['library'][] = 'select2/select2';

Production build 0.69.0 2024