mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-24 20:06:55 +01:00
fix: when adding new milestone progression, prevent default form submit (#10960)
Fixed form submitting the form and reloading page.
This commit is contained in:
parent
34a34364fb
commit
5d65600864
@ -50,7 +50,9 @@ export const MilestoneProgressionForm = ({
|
||||
status,
|
||||
);
|
||||
|
||||
const handleSubmit = async () => {
|
||||
const handleSubmit = async (event: React.FormEvent) => {
|
||||
event.preventDefault();
|
||||
|
||||
if (!form.validate()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user