Update app/soapbox/features/soapbox_config/components/icon_picker_dropdown.js

improve-ci
Sean 2022-02-03 16:06:41 +00:00
rodzic e6ca4ba299
commit ea0d6484a6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,7 @@ class IconPickerMenu extends React.PureComponent {
if (!c) return;
// Nice and dirty hack to display the icons
c.querySelectorAll('button.emoji-mart-emoji > span').forEach(elem => {
c.querySelectorAll('button.emoji-mart-emoji > img').forEach(elem => {
const newIcon = document.createElement('span');
newIcon.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')} fa-hack"></i>`;
elem.parentNode.replaceChild(newIcon, elem);