Skip to content

A local-first personal finance app

Fix transactions table context menu bug (#7264)

Nathália Coutod8af1a7ae714
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
index ddb7ca390f..e16f6b4ac7 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
@@ -1321,10 +1321,12 @@ const Transaction = memo(function Transaction({
triggerRef={triggerRef}
placement="bottom start"
isOpen={menuOpen}
- onOpenChange={() => setMenuOpen(false)}
+ onOpenChange={isOpen => {
+ if (!isOpen) setMenuOpen(false);
+ }}
{...position}
style={{ width: 200, margin: 1 }}
- isNonModal
+ isNonModal={false}
>
<TransactionMenu
transaction={transaction}
diff --git a/upcoming-release-notes/7264.md b/upcoming-release-notes/7264.md
new file mode 100644
index 0000000000..18b77c42c6
--- /dev/null
+++ b/upcoming-release-notes/7264.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [nathaliaacouto]
+---
+
+This PR fixes a bug where the transaction context menu (right-click) would remain stuck on the screen if opened while a transaction cell was in edit mode.