Skip to content

A local-first personal finance app

Clear active edit on mobile when clicking out of notes field (#5430)

ShayanAraghid946852ee92f
diff --git a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
index 4fd4e41ff2..50062b3aae 100644
--- a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
+++ b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
@@ -1037,6 +1037,7 @@ const TransactionEditInner = memo(function TransactionEditInner({
onFocus={() => {
onRequestActiveEdit(getFieldName(transaction.id, 'notes'));
}}
+ onBlur={onClearActiveEdit}
onChange={event =>
onUpdateInner(transaction, 'notes', event.target.value)
}
diff --git a/upcoming-release-notes/5430.md b/upcoming-release-notes/5430.md
new file mode 100644
index 0000000000..188ea35718
--- /dev/null
+++ b/upcoming-release-notes/5430.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [ShayanAraghi]
+---
+
+Clear active edit on mobile when clicking out of notes field