Skip to content

Mention item list shows up as html on UI #364

Answered by csculley
mek24 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, are you returning raw HTML as strings in the renderItem or renderLoading functions? These will need to be updated with 4.0.0 to return a Node-inheriting element, like this:

renderItem: (data) => {
if (data.disabled) {
const div = document.createElement("div");
div.style = "height:10px;line-height:10px;font-size:10px;background-color:#ccc;margin:0 -20px;padding:4px";
div.innerText = data.value;
return div;
}
return data.value;
},

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by csculley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #342 on March 12, 2024 14:18.