Skip to content

Commit

Permalink
fix: prevent receipt search page reload (#394)
Browse files Browse the repository at this point in the history
Previously, pressing "Enter" keyboard key after typing a receipt search query on the receipt management dashboard caused the entire page to refresh due to default form submission behavior, leading to a confusing user experience. This commit fixes the issue by preventing the default page reload on search form submission.
  • Loading branch information
artkolpakov authored May 30, 2024
1 parent ce2a87b commit d3017ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/templates/pages/receipts/_search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form method="post">
<form method="post" onsubmit="return false">
{% csrf_token %}
<input type="text"
placeholder="Search"
Expand Down

0 comments on commit d3017ec

Please sign in to comment.