kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
87 stars 10 forks source link

expansion panels blank after adding new card when expanded #74

Closed kinghat closed 1 year ago

kinghat commented 1 year ago

So far so good. I did some general testing and noticed that there appears to be a scoping issue associated with the "Local Tab Configuraiton" panel.

To recreate:

  1. Add a new card to the dashboard
  2. Select Tabbed Card
  3. Select any other type of subcard
  4. Expand the "local tab configuration" panel
  5. Hit the "+" symbol (leave the "local tab configuration" panel expanded)

Now on any tab the "local tab configuration" panel is blank and the contents are flicker on screen when expanding then disappear. Reviewing the HTML with it expanded and retracted the "" contents are present when retracted and shown when expanded.

This bug does not seem to happen if the "local tab configuration" panel is retracted before switching to another tab.

Hopefully this feedback is helpful. Thanks for your hard work!

Originally posted by @Cerothen in https://github.com/kinghat/tabbed-card/discussions/27#discussioncomment-4683317