symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony

Home Page:https://ux.symfony.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[TwigComponent] Parent function does not work in the content of a twig component

Nek- opened this issue · comments

I tried the following stupid code:

{% block choice_row %}
    <twig:Select label="{{ form.vars.label|default(name|humanize)|trans }}">
        {{ parent() }}
    </twig:Select>
{% endblock %}

But the parent() function does not work inside a twig component. 😅 It was a bit disturbing. Not sure it's a bug or a feature request to be honest.