Skip to content

Commit

Permalink
Fix submit: do not reload page when submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelen5 committed Jan 27, 2025
1 parent f93c431 commit 2f0e43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/Components/ProductForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ const ProductForm = ({ product, onDelete, onSave }) => {
<div className="uk-margin-top">
<form
className="uk-form-stacked"
onSubmit={() => {
onSubmit={(e) => {
e.preventDefault();
onSave();
return false;
}}
>
<fieldset className="uk-margin-top">
Expand Down

0 comments on commit 2f0e43a

Please sign in to comment.