Skip to content

Commit eae4d01

Browse files
author
Manuel Alvarez Alvarez
committed
Add the decorator parameter to the handlers for the attach and detach the dropdown (otherwise the container is undefined)
1 parent 7e2ade0 commit eae4d01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/select2/dropdown/attachBody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ define([
8080
this.$dropdownContainer.detach();
8181
};
8282

83-
AttachBody.prototype._attachPositioningHandler = function (container) {
83+
AttachBody.prototype._attachPositioningHandler = function (decorated, container) {
8484
var self = this;
8585

8686
var scrollEvent = 'scroll.select2.' + container.id;
@@ -107,7 +107,7 @@ define([
107107
});
108108
};
109109

110-
AttachBody.prototype._detachPositioningHandler = function (container) {
110+
AttachBody.prototype._detachPositioningHandler = function (decorated, container) {
111111
var scrollEvent = 'scroll.select2.' + container.id;
112112
var resizeEvent = 'resize.select2.' + container.id;
113113
var orientationEvent = 'orientationchange.select2.' + container.id;

0 commit comments

Comments
 (0)