Skip to content

A local-first personal finance app

Remove auto-scrolling behavior when editing split transactions on mobile (#5572)

Evan Smithbc1cd9023c71
diff --git a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
index 09a39b6a57..21abac6f13 100644
--- a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
+++ b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
@@ -804,15 +804,6 @@ const TransactionEditInner = memo(function TransactionEditInner({
[scrollChildTransactionIntoView],
);
- useEffect(() => {
- const noAmountChildTransaction = childTransactions.find(
- t => t.amount === 0,
- );
- if (noAmountChildTransaction) {
- scrollChildTransactionIntoView(noAmountChildTransaction.id);
- }
- }, [childTransactions, scrollChildTransactionIntoView]);
-
// Child transactions should always default to the signage
// of the parent transaction
const childAmountSign = transaction.amount <= 0 ? '-' : '+';
diff --git a/upcoming-release-notes/5572.md b/upcoming-release-notes/5572.md
new file mode 100644
index 0000000000..e924144961
--- /dev/null
+++ b/upcoming-release-notes/5572.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [e13h]
+---
+
+Remove auto-scrolling behavior when editing split transactions on mobile