We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d00d19f commit cab9b1cCopy full SHA for cab9b1c
1 file changed
ietf/static/js/select2.js
@@ -66,6 +66,11 @@ window.setupSelect2Field = function (e) {
66
.focus()
67
});
68
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
+
74
e.select2({
75
multiple: maxEntries !== 1,
76
maximumSelectionSize: maxEntries,
@@ -109,11 +114,4 @@ $(document)
109
114
return;
110
115
setupSelect2Field($(this));
111
116
112
-
113
- // Remove spurious title attribute (https://github.com/select2/select2/pull/3988)
- $(".select2-selection__rendered")
- .hover(function () {
- $(this)
117
- .removeAttr("title");
118
- });
119
0 commit comments