mlamberts78 / weather-chart-card

Custom weather card with charts.
MIT License
314 stars 39 forks source link

Canvas view disappears when used in bubble card popup #238

Open perok opened 2 months ago

perok commented 2 months ago

Describe the bug

I have added this card inside the bubble card popup. Things are showing nicely the first time the popup is opened. After closing and opening again then the canvas view for the bar chart is gone.

To Reproduce Steps to reproduce the behavior:

  1. Create bubble card popup containing the weather chart card
# Button
              - type: custom:bubble-card
                card_type: name
                name: "Weather"
                button_action:
                  tap_action:
                    action: navigate
                    navigation_path: "#weather"
# Popup

          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: "#weather"

              - type: custom:weather-chart-card
                entity: weather.home
                forecast:
                  style: style2
                  precipitation_type: ""
                  type: daily
                  disable_animation: true
                animated_icons: true
                icon_style: style2
                show_time: false
                show_temperature: true
                show_main: false
                units:
                  pressure: ""
                  speed: ""
  1. Open the popup
  2. Close the popup
  3. Open the popup

Expected behavior

The bar chart showing every time one opens the popup.

Screenshots

Everything is showing as it should: image After reopening we are seeing this: image

Desktop (please complete the following information):

Additional context

mlamberts78 commented 1 month ago

@perok Please check if the issue is resolved in version V2.4.11

perok commented 1 month ago

Still seeing the same issue. Tested it on firefox and in the Android HA app.