[PR #1634] [MERGED] Fix submit form on enter key pressed #3857

Closed
opened 2026-02-28 20:47:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1634
Author: @syukronrm
Created: 9/2/2023
Status: Merged
Merged: 9/5/2023
Merged by: @MatissJanis

Base: masterHead: fix-enter-key


📝 Commits (3)

📊 Changes

3 files changed (+9 additions, -2 deletions)

View changed files

📝 packages/desktop-client/src/components/common/Button.tsx (+2 -1)
📝 packages/desktop-client/src/components/modals/FixEncryptionKey.js (+1 -1)
upcoming-release-notes/1634.md (+6 -0)

📄 Description

Fix #1582

Root Cause
Adding prop type="button" on <Button> doesn't work because it doesn't proparagated to HTML <button>.

Changes

  • On Back button: add isSubmit=false.
  • On Button component: Any <Button> with prop type="primary" should have be propagated as <button type="submit">, except if it's explicitly has prop isSubmit=false.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/1634 **Author:** [@syukronrm](https://github.com/syukronrm) **Created:** 9/2/2023 **Status:** ✅ Merged **Merged:** 9/5/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `fix-enter-key` --- ### 📝 Commits (3) - [`3ecc78f`](https://github.com/actualbudget/actual/commit/3ecc78f7c2ab8012af947ec96feaaf83e2324e9e) Fix submit form on enter key pressed - [`e9fe228`](https://github.com/actualbudget/actual/commit/e9fe228f133364f9ecd6b1ff7fac09537442b8c1) Release note - [`adf4328`](https://github.com/actualbudget/actual/commit/adf4328cc7919a13f4035acebe5399eebba7b385) remove unnecessary ### 📊 Changes **3 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/common/Button.tsx` (+2 -1) 📝 `packages/desktop-client/src/components/modals/FixEncryptionKey.js` (+1 -1) ➕ `upcoming-release-notes/1634.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Fix #1582 **Root Cause** Adding prop `type="button"` on `<Button>` doesn't work because it doesn't proparagated to HTML `<button>`. **Changes** - On Back button: add `isSubmit=false`. - On Button component: Any `<Button>` with prop `type="primary"` should have be propagated as `<button type="submit">`, except if it's explicitly has prop `isSubmit=false`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:47:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3857