Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

how fix 'select2' ('destroy') #305

Open
@sensugaz

Description

@sensugaz

I get error 'select2' ('destroy') when changing route edit how fix it.

The select2('destroy') method was called on an element that is not using Select2.
angular.js:14525 TypeError: Cannot read property 'destroy' of undefined
    at HTMLSelectElement.<anonymous> (select2.js:5685)
    at Function.each (jquery.js:362)
    at jQuery.fn.init.each (jquery.js:157)
    at jQuery.fn.init.$.fn.select2 (select2.js:5675)
    at HTMLSelectElement.<anonymous> (select2.js:175)
    at HTMLSelectElement.dispatch (jquery.js:5206)
    at HTMLSelectElement.elemData.handle (jquery.js:5014)
    at Object.trigger (jquery.js:8201)
    at jQuery.fn.init.triggerHandler (jquery.js:8275)
    at Function.jQuery.cleanData (angular.js:2028)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions