CSR-2072 fix ampersand issue.
Remove code that bolded letters as you typed. This was causing an issue with ampersands. This 'bold as you type' code was not necessary and it's not a requirement for the project, it was a bonus I added when it was setup initially.
This commit is contained in:
parent
6c41e798a1
commit
71db16a0db
1 changed files with 0 additions and 11 deletions
|
|
@ -150,17 +150,6 @@ export default {
|
|||
},
|
||||
minLength: 0, // Necessary to display fmenu when clearing input
|
||||
|
||||
// Bold matching letters as you type in the input
|
||||
search: function (event, ui) {
|
||||
setTimeout(() => {
|
||||
let w = $(this).autocomplete("widget").find("div");
|
||||
let regExpString = "(" + this.value + ")";
|
||||
let re = new RegExp(regExpString, "i");
|
||||
w.html((i, html) =>
|
||||
html.replace(re, "<span style='font-weight: bold;'>$1</span>")
|
||||
);
|
||||
}, 5);
|
||||
},
|
||||
select: function (event, ui) {
|
||||
select(ui.item.value);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue