Open mitsu98 opened 3 months ago
Same for me - I'll delete my bug-ticket...
I also have this issue. This is killing my dashboard.
Same for me, the card sometime doesn't show up, I have to refresh several times until it come. If open chrome dev tools, it will never come
I have the same problem. Unsure what’s causing it, but the error is more or less the same.
My dashboard has several views/tabs. If I refresh the tab with this exact card on, I get an error. If a different view/tab is active, I can refresh and switch to the troubling view/tab and everything is fine. This makes me think there is some timing issue.
EDIT: I believe I have narrowed it down to the picture card specifically. It may be a problem with other cards as well, but I managed to get entity cards and sensor cards working without this error. Switching the card back to a picture card immediately gives me the error again. Also, it does not matter how I reference the image. I have tried images served from HA, served from a different URL, and data URIs. They all give the same error.
Have you been able to check this one @RomRider . I see a few old bugs / forum posts regarding it and it seemed to have been fixed at the time, I assume with some logic to wait for the required dependencies to be ready. If I shift+F5 on chrome, I almost never see it, but see it probably 50% of the time if I don't hold down shift.
It only started to repeatedly happen for me today when I moved about some elements in my dashboard, to be within the new homeassistant sections, so it does seem like wrapping button-cards within other elements can sometimes hide the issue, and wrapping it inside other things, exposes it somehow.
Checklist
Describe the bug Button card with custom_fields disappear when refreshing the page HA 2024.3.0
To Reproduce This is the configuration I used:
Screenshots![vid (1)](https://github.com/custom-cards/button-card/assets/87440954/b9c78410-2a2b-4069-8354-d11787f50116)