Skip to content

Commit 5b7d5ca

Browse files
authored
Merge pull request #39 from ProLoser/fix/toolbar-dialog-race-condition
Fix/toolbar dialog race condition
2 parents 27135cf + 415e861 commit 5b7d5ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Board/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Toolbar({ friendData }: ToolbarProps) {
1313
const friendDataValue = friendData?.val();
1414

1515
return (
16-
<div id="toolbar" onPointerUp={() => toggle('friends')}>
16+
<div id="toolbar" onPointerUp={(e) => { toggle('friends'); e.stopPropagation(); }}>
1717
{friendDataValue
1818
? <Avatar user={friendDataValue} />
1919
: <a className={`material-icons notranslate ${dialogState && 'active' || ''}`}>account_circle</a>}

0 commit comments

Comments
 (0)