fix: Remove spurious title attribute (#4917)
This commit is contained in:
parent
d00d19f512
commit
cab9b1c5e5
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue