Skip to content

Commit cab9b1c

Browse files
authored
fix: Remove spurious title attribute (ietf-tools#4917)
1 parent d00d19f commit cab9b1c

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

ietf/static/js/select2.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ window.setupSelect2Field = function (e) {
6666
.focus()
6767
});
6868

69+
// Remove spurious title attribute (https://github.com/select2/select2/pull/3988)
70+
$(document)
71+
.on("mouseenter", ".select2-selection__rendered", function () { $(this)
72+
.removeAttr("title"); });
73+
6974
e.select2({
7075
multiple: maxEntries !== 1,
7176
maximumSelectionSize: maxEntries,
@@ -109,11 +114,4 @@ $(document)
109114
return;
110115
setupSelect2Field($(this));
111116
});
112-
113-
// Remove spurious title attribute (https://github.com/select2/select2/pull/3988)
114-
$(".select2-selection__rendered")
115-
.hover(function () {
116-
$(this)
117-
.removeAttr("title");
118-
});
119117
});

0 commit comments

Comments
 (0)