diff --git a/Event/RequestListener.php b/Event/RequestListener.php
index 80a4670f..76061716 100644
--- a/Event/RequestListener.php
+++ b/Event/RequestListener.php
@@ -20,8 +20,9 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
+use Symfony\Contracts\Service\ResetInterface;
-class RequestListener
+class RequestListener implements ResetInterface
{
/**
* @var BuilderInterface
@@ -127,4 +128,9 @@ public function onKernelResponse(ResponseEvent $event): void
$event->setResponse($response);
}
}
+
+ public function reset(): void
+ {
+ $this->invalidSubmittedForm = false;
+ }
}
diff --git a/Resources/config/services.xml b/Resources/config/services.xml
index 885566b4..f605f5ab 100644
--- a/Resources/config/services.xml
+++ b/Resources/config/services.xml
@@ -105,6 +105,7 @@
+