# Duplicate DOM elements in edit mode

**URL:** <https://community.grafana.com/t/duplicate-dom-elements-in-edit-mode/147447>\
**Category:** Grafana Plugin Development\
**Tags:** plugins\
**Created:** [March 30, 2025, 10:08am UTC](https://community.grafana.com/t/duplicate-dom-elements-in-edit-mode/147447 "2025-03-30T10:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamahari1](https://avatars.discourse-cdn.com/v4/letter/y/8dc957/32.png) [@yamahari1](https://community.grafana.com/u/yamahari1)\
**Post date:** [March 30, 2025, 10:08am UTC](https://community.grafana.com/t/duplicate-dom-elements-in-edit-mode/147447/1 "2025-03-30T10:08:46Z")

</div>

Hi, I am developing a plugin for a fork of grafana 9.4.7 (stuck on this version for the time being…).  
I am embedding React Flow into the panel and everything works as expected. But when I enter the edit mode of the panel, Grafana keeps the dashboard hidden in the DOM while presenting the edit screen. I think this causes all sorts of troubles with ids/classnames, not only in React Flow. The issue does not arise when you visit the edit url directly, which further reinforces my suspicion. Can I somehow circumvent this, can I tell grafana not to cache the dashboard in the background?

---

<div class="post-metadata">

**Author:** ![academo](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@academo](https://community.grafana.com/u/academo)\
**Post date:** [March 31, 2025, 12:55pm UTC](https://community.grafana.com/t/duplicate-dom-elements-in-edit-mode/147447/2 "2025-03-31T12:55:43Z")

</div>

Hi @yamahari1 sadly we don’t actively support that Grafana version anymore and additionally the whole architecture around rendering dashboards and panels recently changed so no more changes are done to old versions in that regard.

Maybe you can share what you are trying to do, plugins should not depend on the state of the dashboard or any of its dom elements to work so I wonder if there’s something that perhaps you can do better and avoid this problem altogether.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 31, 2026, 12:56pm UTC](https://community.grafana.com/t/duplicate-dom-elements-in-edit-mode/147447/3 "2026-03-31T12:56:16Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
