diff --git a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderInput.twig b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderInput.twig index 40e7c0dc9b..b531eb5951 100644 --- a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderInput.twig +++ b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderInput.twig @@ -24,6 +24,20 @@ multiple /> + + + + + + + + +
+ +
+ +
+
+ + +
+ +
+ +
+
diff --git a/packages/web-twig/src/Twig/PropsExtension.php b/packages/web-twig/src/Twig/PropsExtension.php index 42f341ea3b..48eb80877c 100644 --- a/packages/web-twig/src/Twig/PropsExtension.php +++ b/packages/web-twig/src/Twig/PropsExtension.php @@ -77,7 +77,7 @@ public function renderInputProps(Environment $environment, array $props, $allowe $transferringAttributes = []; foreach ($props as $propName => $propValue) { if (in_array($propName, self::VALIDATION_ATTRIBUTES, true) || in_array($propName, $allowedAttributes)) { - if (! is_null($propValue) && $propValue !== '') { + if (! is_null($propValue) && $propValue !== '' && $propValue !== false) { $transferringAttributes[$propName] = $propValue; } }