A local-first personal finance app
:bug: (transactions) create transaction when clicking enter (#992)
Matiss Janis Aboltins539cb0e5cfdc
diff --git a/packages/desktop-client/src/components/accounts/TransactionsTable.js b/packages/desktop-client/src/components/accounts/TransactionsTable.jsindex c5e0801946..a6fd0de728 100644--- a/packages/desktop-client/src/components/accounts/TransactionsTable.js+++ b/packages/desktop-client/src/components/accounts/TransactionsTable.js@@ -1619,9 +1619,6 @@ export let TransactionTable = React.forwardRef((props, ref) => {// add splitonAddSplit(lastTransaction.id);} else if (- (newNavigator.focusedField === 'debit' ||- newNavigator.focusedField === 'credit' ||- newNavigator.focusedField === 'cleared') &&newNavigator.editingId === lastTransaction.id &&(!isSplit || !lastTransaction.error)) {diff --git a/packages/desktop-client/src/components/accounts/TransactionsTable.test.js b/packages/desktop-client/src/components/accounts/TransactionsTable.test.jsindex a7e0395061..de3c7911f5 100644--- a/packages/desktop-client/src/components/accounts/TransactionsTable.test.js+++ b/packages/desktop-client/src/components/accounts/TransactionsTable.test.js@@ -643,7 +643,7 @@ describe('Transactions', () => {input = await editNewField(container, 'notes');await userEvent.clear(input);- await userEvent.type(input, 'a transaction[Enter]');+ await userEvent.type(input, 'a transaction');input = await editNewField(container, 'debit');expect(input.value).toBe('0.00');diff --git a/upcoming-release-notes/992.md b/upcoming-release-notes/992.mdnew file mode 100644index 0000000000..9275329ec2--- /dev/null+++ b/upcoming-release-notes/992.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [MatissJanis]+---++Allow creating transactions by clicking "enter" in the notes/payee/category field