Skip to content

Commit c53b2dc

Browse files
committed
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. select2#3889
1 parent 6d91da7 commit c53b2dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/js/select2/dropdown/infiniteScroll.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ define([
7373

7474
InfiniteScroll.prototype.createLoadingMore = function () {
7575
var $option = $(
76-
'<li class="option load-more" role="treeitem"></li>'
76+
'<li ' +
77+
'class="select2-results__option select2-results__option--load-more"' +
78+
'role="treeitem" aria-disabled="true"></li>'
7779
);
7880

7981
var message = this.options.get('translations').get('loadingMore');

0 commit comments

Comments
 (0)