Skip to content

Commit f15583a

Browse files
committed
make query() aware of the element select2 is attached to. fixes select2#561
1 parent ef8c49f commit f15583a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

select2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ the specific language governing permissions and limitations under the Apache Lic
12881288
if (below <= this.opts.loadMorePadding) {
12891289
more.addClass("select2-active");
12901290
this.opts.query({
1291+
element: this.opts.element,
12911292
term: term,
12921293
page: page,
12931294
context: context,
@@ -1382,6 +1383,7 @@ the specific language governing permissions and limitations under the Apache Lic
13821383

13831384
this.resultsPage = 1;
13841385
opts.query({
1386+
element: opts.element,
13851387
term: search.val(),
13861388
page: this.resultsPage,
13871389
context: null,

0 commit comments

Comments
 (0)