Commit 428b220a authored by Hiroyuki Sato's avatar Hiroyuki Sato

Fix not render emoji in filter dropdown

parent 7528b2d2
...@@ -69,10 +69,13 @@ export default class DropdownEmoji extends FilteredSearchDropdown { ...@@ -69,10 +69,13 @@ export default class DropdownEmoji extends FilteredSearchDropdown {
// Replace empty gl-emoji tag to real content // Replace empty gl-emoji tag to real content
const dropdownItems = [...this.dropdown.querySelectorAll('.filter-dropdown-item')]; const dropdownItems = [...this.dropdown.querySelectorAll('.filter-dropdown-item')];
dropdownItems.forEach(dropdownItem => { dropdownItems.forEach(dropdownItem => {
const name = dropdownItem.querySelector('.js-data-value').innerText; const valueElement = dropdownItem.querySelector('.js-data-value');
const emojiTag = this.glEmojiTag(name); if (valueElement !== null) {
const emojiElement = dropdownItem.querySelector('gl-emoji'); const name = valueElement.innerText;
emojiElement.outerHTML = emojiTag; const emojiTag = this.glEmojiTag(name);
const emojiElement = dropdownItem.querySelector('gl-emoji');
emojiElement.outerHTML = emojiTag;
}
}); });
} }
......
---
title: Fix not render emoji in filter dropdown
merge_request: 23112
author: Hiroyuki Sato
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment