Skip to content

Commit d154146

Browse files
committed
Merge pull request select2#340 from 19Gerhard85/master
Another fix for: IE fires window.onbeforeunload event select2#330
2 parents 8bab0b6 + d5b6d5f commit d154146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@
20192019
var choice=$(
20202020
"<li class='select2-search-choice'>" +
20212021
" <div></div>" +
2022-
" <a href='javascript:void(0)' class='select2-search-choice-close' tabindex='-1'></a>" +
2022+
" <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" +
20232023
"</li>"),
20242024
id = this.id(data),
20252025
val = this.getVal(),

0 commit comments

Comments
 (0)