Skip to content

As soon as you call startStimulusApp, the bootstrap dropdowns no longer work. #122

@ralusnom

Description

@ralusnom

Hello everyone,

I am using this code below to add a dropdown button. When I press this button, I see that something responds in the developer console, but nothing actually opens in the view.

<button type="button" class="btn btn-sm dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <span class="sr-only">Open</span>
                    </button>

until i comment out the stimulus loader.

// export const app = startStimulusApp(
//    require.context(
//        "@symfony/stimulus-bridge/lazy-controller-loader!./controllers",
//        true,
//        /\.([jt])sx?$/,
//    ),
// );

then i can use the dropdowns. i'm suffering. any help is very welcome. thank you!


  • bootstrap: v5.3.6
  • symfony/stimulus-bundle: 2.25
  • typescript: 5.3.3
  • @symfony/webpack-encore: 4.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions