diff --git a/webapp/channels/src/components/file_attachment/file_attachment.tsx b/webapp/channels/src/components/file_attachment/file_attachment.tsx index fd79d94cf4..21a58fa63e 100644 --- a/webapp/channels/src/components/file_attachment/file_attachment.tsx +++ b/webapp/channels/src/components/file_attachment/file_attachment.tsx @@ -65,6 +65,7 @@ export default function FileAttachment(props: Props) { const [loadFilesCalled, setLoadFilesCalled] = useState(false); const [keepOpen, setKeepOpen] = useState(false); const [openUp, setOpenUp] = useState(false); + const [showTooltip, setShowTooltip] = useState(true); const buttonRef = useRef(null); @@ -139,6 +140,7 @@ export default function FileAttachment(props: Props) { const handleDropdownOpened = (open: boolean) => { props.handleFileDropdownOpened?.(open); setKeepOpen(open); + setShowTooltip(!open); if (open) { setMenuPosition(); @@ -227,6 +229,7 @@ export default function FileAttachment(props: Props) { >