Fix icons to show in the picker for promotional items
This commit is contained in:
parent
d5ae29bfda
commit
58850f1d8e
|
@ -69,7 +69,9 @@ class IconPickerMenu extends React.PureComponent {
|
|||
|
||||
// Nice and dirty hack to display the icons
|
||||
c.querySelectorAll('button.emoji-mart-emoji > span').forEach(elem => {
|
||||
elem.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')}"></i>`;
|
||||
const newIcon = document.createElement('span');
|
||||
newIcon.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')} fa-hack"></i>`;
|
||||
elem.parentNode.replaceChild(newIcon, elem);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue