Merge branch 'fix-emoji-picker' into 'develop'

Fix emoji picker no longer opening

See merge request soapbox-pub/soapbox-fe!1512
chats-fixes
Justin 2022-06-09 15:49:13 +00:00
commit 354657065d
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -301,7 +301,9 @@ class EmojiPickerDropdown extends React.PureComponent {
this.dropdown = c;
}
onShowDropdown = ({ target }) => {
onShowDropdown = (e) => {
e.stopPropagation();
this.setState({ active: true });
if (!EmojiPicker) {
@ -317,7 +319,7 @@ class EmojiPickerDropdown extends React.PureComponent {
});
}
const { top } = target.getBoundingClientRect();
const { top } = e.target.getBoundingClientRect();
this.setState({ placement: top * 2 < innerHeight ? 'bottom' : 'top' });
}