From 8635155585196d996c243c46b1d30c2a54fe4bc5 Mon Sep 17 00:00:00 2001 From: Clovis Date: Sun, 24 Mar 2024 10:52:23 +0100 Subject: [PATCH] fix: minor issues on mobile with dropdownMenu and emojiReactMenu --- app/soapbox/components/emoji-button-wrapper.tsx | 7 +++---- app/soapbox/components/modal_root.js | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/soapbox/components/emoji-button-wrapper.tsx b/app/soapbox/components/emoji-button-wrapper.tsx index 830e31ab4..ae358b8ba 100644 --- a/app/soapbox/components/emoji-button-wrapper.tsx +++ b/app/soapbox/components/emoji-button-wrapper.tsx @@ -1,6 +1,6 @@ /* eslint-disable jsx-a11y/interactive-supports-focus */ import { Map as ImmutableMap } from 'immutable'; -import React, { useState, useEffect, useRef } from 'react'; +import React, { useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { usePopper } from 'react-popper'; import { useDispatch } from 'react-redux'; @@ -118,14 +118,13 @@ const EmojiButtonWrapper: React.FC = ({ statusId, children return ( -
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions +
{ children} { visible && ( ReactDOM.createPortal((