There was an error while loading. Please reload this page.
1 parent 76e9024 commit c234395Copy full SHA for c234395
js/autocomplete.js
@@ -1053,7 +1053,7 @@ var markFirstLastOptions = function() {
1053
var calcTextWidth = function(text) {
1054
// add the text to the dummy span with some extra characters as a buffer
1055
// NOTE: "W" seems to be the widest character in most fonts
1056
- inputWidthProxyEl.html(text + 'WW');
+ inputWidthProxyEl.html(encode(text) + 'WW');
1057
1058
// copy text-related css properties from the input element to the proxy
1059
var cssProps = {};
0 commit comments