Skip to content

Debug toolbar doesn't work with turbolinks after first page load #1179

Closed
@gone

Description

@gone

Using turbolinks everything works as expected on the first page load.

After transitioning to another page, all css/js/html is correctly loaded and created, but the djdt.init function bound to the DOMContentLoaded event doesn't fire (https://github.com/jazzband/django-debug-toolbar/blob/master/debug_toolbar/static/debug_toolbar/js/toolbar.js#L329) so click handlers and setup aren't initialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions