mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 14:18:11 +00:00
add some comments
This commit is contained in:
@@ -43,6 +43,10 @@ const emojiCompletionList = (context)=>{
|
||||
return div;
|
||||
}
|
||||
}));
|
||||
//Label is the text in the list, comes with an icon that just
|
||||
//renders example text "abc", hid that with css because i didn't see other choice
|
||||
//Apply is the text that is set when the choice is selected
|
||||
//Info is the tooltip
|
||||
|
||||
return {
|
||||
from : word.from + 1,
|
||||
@@ -61,7 +65,6 @@ export const autocompleteEmoji = autocompletion({
|
||||
const icon = document.createElement('i');
|
||||
icon.className = `emojiPreview ${emojis[e]}`;
|
||||
|
||||
// append directly to a DocumentFragment to return a single node
|
||||
const fragment = document.createDocumentFragment();
|
||||
fragment.appendChild(icon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user