[TwigComponent] Using HTML syntax in blocks defined in other Twig Components does not work #2799
-
Hi there, I'm following the Symfonycasts LAST stack tutorial, i'm in the modal part, and I think there's a bug when using the HTML syntax inside blocks defined in twig components. First, here's the Modal code (bit different from the tutorial since i'm using bootstrap):
Here's the code of me using it to add a "delete confirmation modal" (this part: https://symfonycasts.com/screencast/last-stack/modal-component#delete-modal-with-custom-content)
No errors are thrown, but the button is just not displayed: To make sure my I switched from the HTML-like syntax to the
and this does work, button shows up (with a small style issue but that's ok) and works as expected: Let me know if more information is needed. UPDATE: It seems like its mix-and-matching that does not work. If I use HTML syntax to define the block, then using the HTML syntax of the button does work:
Using the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Indeed, something we tried to document here: https://symfony.com/bundles/ux-twig-component/current/index.html#nested-components Anything else we can clarify ? |
Beta Was this translation helpful? Give feedback.
Indeed, something we tried to document here: https://symfony.com/bundles/ux-twig-component/current/index.html#nested-components
Anything else we can clarify ?