PHP Classes

File: modules/system/assets/ui/vendor/select2/WINTER-README.md

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/assets/ui/vendor/select2/WINTER-README.md   Download  
File: modules/system/assets/ui/vendor/select2/WINTER-README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 8 months ago
Size: 606 bytes
 

Contents

Class file image Download

There's a hack in select2.full.js. The hack prevents DOM element leakage through the event handler. Added/updated code:

Line 3961, added .select2 namespace in the event handler registration:

this.$dropdownContainer.on('mousedown.select2', function (evt) {

Lines 4120-4124. Added new method:

  AttachBody.prototype.destroy = function(decorated) {
    this.$dropdownContainer.off('.select2')

    decorated.call(this);
  }

Filed an issue: https://github.com/select2/select2/issues/3774 The issue was closed by the developers - the problem is going to be fixed in the upcoming 4.0.1 release.