Skip to content

Commit da41457

Browse files
Update select2.js
Fixed line 2154 to allow Select2 work with multiple levels hireachal data.
1 parent c169bd5 commit da41457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ the specific language governing permissions and limitations under the Apache Lic
21512151
});
21522152

21532153
compound.each2(function(i, e) {
2154-
if (e.find(".select2-result-selectable").length==0) {
2154+
if (!e.is('.select2-result-selectable') && e.find(".select2-result-selectable").length==0) { // FIX FOR HIRECHAL DATA
21552155
e.addClass("select2-disabled");
21562156
} else {
21572157
e.removeClass("select2-disabled");

0 commit comments

Comments
 (0)