Skip to content

🐛 js does not load in 8.4.7: $element.select2 is not a function #366

@nstephenh

Description

@nstephenh

Bug Description

I was previously on 8.4.0 and the element was working fine. In it no longer loads any results or the placeholder text, and we get the following javascript error:
$element.select2 is not a function.
It works in 8.4.3, but does not in 8.4.4, so it's likely related to #354

It could just be that I need to change how I include jquery, but I'm not entirely sure how.
My template currently looks like this:

<script type="text/javascript" src="/static/admin/js/vendor/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>

    {{ form.media.js }}
    {{ form.media.css }}

Steps to Reproduce

Load a project using a form similar to the above.

Expected Behavior

select2 should load properly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions