Merge branch 'autosuggest-profiles-fix' into 'develop'

AutosuggestAccount: let account be clicked

See merge request soapbox-pub/soapbox!1923
This commit is contained in:
Alex Gleason 2022-11-20 02:16:51 +00:00
commit 9df92e91e7

View file

@ -14,7 +14,14 @@ const AutosuggestAccount: React.FC<IAutosuggestAccount> = ({ id }) => {
if (!account) return null;
return <Account account={account} hideActions showProfileHoverCard={false} />;
return (
<div className='relative'>
{/* HACK: The <Account> component stops click events, so insert this div as something to click. */}
<div className='absolute inset-0' />
<Account account={account} showProfileHoverCard={false} withLinkToProfile={false} hideActions />
</div>
);
};