Allow HTML in CandidateBox item. Fixes #1835

This commit is contained in:
Francisco Hodge 2023-01-09 16:45:05 -05:00
parent 4d366525c1
commit 810d084e21

View File

@ -85,7 +85,7 @@ class CandidateBox {
}; };
candidateListLIElement.className = "hg-candidate-box-list-item"; candidateListLIElement.className = "hg-candidate-box-list-item";
candidateListLIElement.textContent = this.options.display?.[candidateListItem] || candidateListItem; candidateListLIElement.innerHTML = this.options.display?.[candidateListItem] || candidateListItem;
candidateListLIElement.onclick = (e = getMouseEvent()) => candidateListLIElement.onclick = (e = getMouseEvent()) =>
onItemSelected(candidateListItem, e); onItemSelected(candidateListItem, e);