Skip to content

Dumper::toHtml() in snippet - Uncaught TypeError: dest is null #482

@BigOHenry

Description

@BigOHenry

Version:
PHP 8.0
TRACY 2.8

Bug Description

When using \Tracy\Dumper::toHtml($array) in snippet you cannot open 2nd level in array. There is an error in console Uncaught TypeError: dest is null

Steps To Reproduce

  1. Latte code
    <div n:snippet="show_data">
        {if $show_data}
            {\Tracy\Dumper::toHtml(['test' => ['x' => ['y' => ['z' => 'test']]]])|noescape}
        {/if}
    </div>
  1. After redraw a snippet it render this:
    obrazek

  2. If you click on arrow to expand 'x' key, there is an error in console log Uncaught TypeError: dest is null at this code:
    obrazek

If the same code is used out of the snippet, it works:
obrazek

If using much bigger array with more depth even first level cannot be opend. Same error.

Thank you!

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