1
0
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:
Jaanus Sellin 2025-11-11 11:04:54 +02:00 committed by GitHub
parent 34a34364fb
commit 5d65600864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,9 @@ export const MilestoneProgressionForm = ({
status,
);
const handleSubmit = async () => {
const handleSubmit = async (event: React.FormEvent) => {
event.preventDefault();
if (!form.validate()) {
return;
}