Skip to content

Commit ec97c81

Browse files
committed
Merge pull request select2#2151 from dhardtke/csp_fixes
fix select2 csp errors / warnings
2 parents c3592c3 + 60359f9 commit ec97c81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ the specific language governing permissions and limitations under the Apache Lic
18581858
var container = $(document.createElement("div")).attr({
18591859
"class": "select2-container"
18601860
}).html([
1861-
"<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>",
1861+
"<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>",
18621862
" <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>",
18631863
" <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>",
18641864
"</a>",
@@ -2921,7 +2921,7 @@ the specific language governing permissions and limitations under the Apache Lic
29212921
enabledItem = $(
29222922
"<li class='select2-search-choice'>" +
29232923
" <div></div>" +
2924-
" <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" +
2924+
" <a href='#' class='select2-search-choice-close' tabindex='-1'></a>" +
29252925
"</li>"),
29262926
disabledItem = $(
29272927
"<li class='select2-search-choice select2-locked'>" +

0 commit comments

Comments
 (0)