-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox crashes when tagging with non-ASCII characters (Chinese/Japanese, diacritics, unicode, etc) #4743
Comments
I can reproduce this error writing á or é or â in firefox 50.1.0 when tagging is activated. Regards. |
Please @vitorlee, change issue title because Spanish, French, German... all languajes that use words with accents cannot work under firefox. It seems firefox send accent before character and it makes break javascript. |
Same issue with firefox on linux, any solutions? |
Here is a small reproducing code (without select2). <!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<ul>
<li class="input"><input type="text"></li>
</ul>
<script src="https://code.jquery.com/jquery-3.2.1.js" integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" crossorigin="anonymous"></script>
<script>
var items = [];
var $ul = $("ul");
var $liin = $("li.input");
var $in = $liin.find("input");
$ul.on("input", "li.input", function() {
items.push($in.val());
$ul.empty();
for (var e of items)
$ul.append($("<li class='choice'>" + e + "</li>"));
$ul.append($liin);
$in.focus();
});
</script>
</body>
</html> Firefox will confuse when the Select2 is being affected by this behaviour. At here:
and here: select2/src/js/select2/selection/search.js Lines 173 to 174 in ebf10c9
|
Same issue with Chrome (64.0.3282.119) on linux. |
In develop branch, bca6a50 is blocking the resolution of this issue. |
Hi, this is an issue for Chrome 70.0.3538 on MacOS X Sierra as well. |
Any solution to this? I'm having the same issue on any browser at Mac OS High Sierra. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any solution or workaround? We just got hit buy this as well on MacOS. |
I have an issue with greek characters where: Actual greek word: Βοήθεια On first letter: Έλεγχος (Correctly inserted) |
Steps to reproduce the issue
Environment
Browsers
Operating System
Isolating the problem
The text was updated successfully, but these errors were encountered: