From d36b98e83169e54d292ce43041cb5e34160e0f10 Mon Sep 17 00:00:00 2001 From: stehled Date: Thu, 6 Mar 2025 08:54:26 +0100 Subject: [PATCH] [LiveComponent] `ComponentWithFormTrait` now correctly checks for a `TranslatableInterface` placeholder for `` elements ## 2.23.0 diff --git a/src/LiveComponent/src/ComponentWithFormTrait.php b/src/LiveComponent/src/ComponentWithFormTrait.php index 00c98419263..fff01e0b73b 100644 --- a/src/LiveComponent/src/ComponentWithFormTrait.php +++ b/src/LiveComponent/src/ComponentWithFormTrait.php @@ -16,6 +16,7 @@ use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; +use Symfony\Contracts\Translation\TranslatableInterface; use Symfony\UX\LiveComponent\Attribute\LiveProp; use Symfony\UX\LiveComponent\Attribute\PreReRender; use Symfony\UX\LiveComponent\Util\LiveFormUtility; @@ -286,7 +287,8 @@ private function extractFormValues(FormView $formView): array ) && !$child->vars['expanded'] // is a