Skip to content

Stimulus Outlets twig function doesn't print subfolder controllers correctly #1167

Closed
@zairigimad

Description

@zairigimad

Symfony version(s) affected

6.1

Description

when i render stimulus controller with the following code

              {{ stimulus_controller(
                  'quotes--tooth',
                  {
                      'toothNumber': 'x',
                  },
                  controllerOutlets = { 'quotes--modal-form': '.formal' }
              )
              }}

the result in html is like this

data-quotes--tooth-quotes-modal-form-outlet=".formal"

it's missing the double dashes, it should be like this to work

data-quotes--tooth-quotes--modal-form-outlet=".formal"

How to reproduce

with a subfolder controller that we call in anotehr controller using outlets, you should have the same bug

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions