fix: Remove spurious title attribute (#4917)

This commit is contained in:
Lars Eggert 2022-12-19 17:01:06 +02:00 committed by GitHub
parent d00d19f512
commit cab9b1c5e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,11 @@ window.setupSelect2Field = function (e) {
.focus()
});
// Remove spurious title attribute (https://github.com/select2/select2/pull/3988)
$(document)
.on("mouseenter", ".select2-selection__rendered", function () { $(this)
.removeAttr("title"); });
e.select2({
multiple: maxEntries !== 1,
maximumSelectionSize: maxEntries,
@ -109,11 +114,4 @@ $(document)
return;
setupSelect2Field($(this));
});
// Remove spurious title attribute (https://github.com/select2/select2/pull/3988)
$(".select2-selection__rendered")
.hover(function () {
$(this)
.removeAttr("title");
});
});