Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.46k stars 41 forks source link

TypeError: Cannot read properties of null (reading 'classList') #410

Closed Perfect-Web closed 1 month ago

Perfect-Web commented 4 months ago

For any feature request you can open a new discussion here to allow everyone to vote.

For any question you can open a new discussion here.

Describe the bug 2024-03-10 23:15:51.152 ERROR (MainThread) [frontend.js.latest.202403060] Uncaught error from Chrome 122.0.0.0 on Linux x86_64 TypeError: Cannot read properties of null (reading 'classList') /hacsfiles/Bubble-Card/bubble-card.js:520:1627

To Reproduce Steps to reproduce the behavior:

      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hide_backdrop: true
          hash: '#groupTemperature'
          bg_blur: 0
          bg_opacity: 100
          name: Senzori din grup
          icon: mdi:leak
          width_desktop: 100%
        - type: custom:auto-entities
          filter:
            include:
              - {id}
          card:
            type: entities
            state_color: true
          else:
            type: custom:mushroom-template-card
            tap_action:
              action: none
            hold_action:
              action: none
            primary: bbbbb
            secondary: aaaaa
            icon: mdi:exclamation-thick
            fill_container: false
            badge_icon: mdi:thermometer
            badge_color: red
            icon_color: pink

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Thank you! 🍻

Schloerhome commented 4 months ago

Experiencing this on pixel devices as well

Knillis commented 4 months ago

Same here: Uncaught error from WebKit 605.1.15 on iOS 17.2.1 TypeError: null is not an object (evaluating 't.popUp.classList') /hacsfiles/Bubble-Card/bubble-card.js:520:1626 Uncaught error from Edge 123.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'classList') /hacsfiles/Bubble-Card/bubble-card.js:520:1627

Clooos commented 4 months ago

Thank you guys for the feedback, this issue should be fixed in the next release.

Clooos commented 3 months ago

This issue should be fixed in the v2 beta!

Here is the link to the full changelog: https://github.com/Clooos/Bubble-Card/releases/tag/v2.0.0-beta.1