1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Fixed incorrect classes on "Loading more results" message

This fixes an issue where the old `option` and `load-more` classes were
not switched over to the newer BEM style of class names. Unfortunately
this is a breaking change, but this is also a bug given that it doesn't
follow the proper prefixing and is likely to conflict with larger
applications.

https://github.com/select2/select2/issues/3889
This commit is contained in:
Kevin Brown 2015-11-09 18:13:02 -05:00
parent 6d91da7e63
commit c53b2dcf11

View File

@ -73,7 +73,9 @@ define([
InfiniteScroll.prototype.createLoadingMore = function () {
var $option = $(
'<li class="option load-more" role="treeitem"></li>'
'<li ' +
'class="select2-results__option select2-results__option--load-more"' +
'role="treeitem" aria-disabled="true"></li>'
);
var message = this.options.get('translations').get('loadingMore');