Fix emoji picker no longer opening

This commit is contained in:
Justin
2022-06-09 11:38:52 -04:00
parent 6328b03783
commit 4d7ce0a6d9

View File

@ -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' });
}