TreyWW / MyFinances

MyFinances is a web application that can help you as an individual, or team, manage your finances!
https://docs.myfinances.cloud
GNU Affero General Public License v3.0
85 stars 121 forks source link

bug: pressing "Enter" keyboard key refreshes page during receipt search in receipt management dashboard #393

Closed artkolpakov closed 1 month ago

artkolpakov commented 1 month ago

What version of MyFinances are you currently using?

v0.4.5-34

What device type are you currently facing the issue on?

Desktop

Describe the bug

In the Receipt Management Dashboard's user interface (frontend/templates/pages/receipts), pressing the "Enter" key after typing a search query in the search bar causes the entire page to refresh. This action clears the search form's text and displays all receipts instead of retaining the search results. While the dynamic search updates results correctly as each character is typed, the expectation for many users is that pressing "Enter" will submit the search, not refresh the page. This behavior leads to a confusing user experience.

Steps to Reproduce:

  1. Navigate to the Receipt Management Dashboard (/dashboard/receipts/ route).
  2. Type a search query into the search bar.
  3. Press the "Enter" key on your keyboard.

ReceiptSearchBug

Expected Behavior: Pressing the "Enter" key should submit the search query and display the filtered receipt results without refreshing the page and resetting the search form.

artkolpakov commented 1 month ago

@TreyWW this issue is similar to the client search bug #383. The PR #394 resolving it should be quick to review since it was fortunately a one-liner fix 🙏