Non visual editor shows only first button card config when switching between multiple cards in a vertical stack
Checklist
- [X ] I updated the card to the latest version available
- X[ ] I cleared the cache of my browser
Describe the bug After updating from HA 2024.7.x to 2024.12.x and now still with 2025.1.x the following issue started to appear, that seems to only effect custom button card and no other cards without a visual editor. When putting multiple button cards in a virtual stack and you start editing that stack, switching e.g. from the top card to the second from the top one leads to the code not being updated - i.e. I'm not seeing the code from the second one but the one of the top one keeps staying displayed. If I have a visual editable card in the same stack and switch from the first non visual button card to the visual editable one and then to the second one mentioned above the displayed code DOES update.
Version of the card Version: 4.1.2
To Reproduce This is the configuration I used: Even happens with the most basic button card config. To reproduce: put multiple button cards into a virtual stack, edit stack, switch to the initially displayed button card to another one, code displayed remains the one from the initially displayed card.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Expected behavior**
The code displayed is the one you want to edit, not the initially displayed one.
**Desktop (please complete the following information):**
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: Happens with companion app, and on a notebook with firefox, chrome, chromium
**Additional context**
Initially issue described and discussed here
https://github.com/home-assistant/core/issues/134800