fix context menu not closing

This commit is contained in:
Michael Peters 2023-01-22 16:02:04 -08:00
parent 72b0b0004d
commit b30a3d87b7
3 changed files with 5 additions and 4 deletions

View File

@ -45,7 +45,7 @@ This will create a `.cordis` guild invite file in the `dist/server/invites` dire
See Also
- `make create-invite-heaven` - creates invite to the second server
- `make create-example-roles` - registers the user named 'Elipzer' as an admin
- `make create-memes-messages` - inserts 2000 messages into the #memes text channel
- `make create-memes-messages` - inserts testing messages into the #memes text channel to help with testing infinite scroll
Launch the Server

View File

@ -58,7 +58,8 @@ electronMain.initialize();
electronMain.enable(window.webContents);
window.webContents.openDevTools();
// enable dev tools by default
// window.webContents.openDevTools();
electron.ipcMain.on('minimize', () => {
window.minimize();

View File

@ -53,8 +53,8 @@ const ConnectionInfo: FC = () => {
if (guild) {
return (
<div ref={rootRef} className="connection-info" onClick={toggleContextMenu}>
<div>
<div ref={rootRef}>
<div className="connection-info" onClick={toggleContextMenu}>
<MemberElement guild={guild} member={displayMember} />
</div>
{contextMenu}