Bubble-Card icon indicating copy to clipboard operation
Bubble-Card copied to clipboard

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

Open Perfect-Web opened this issue 11 months ago • 4 comments

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 1.6.2]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. Home Assistant Companion App, Safari]
  • Version [e.g. 1.6.2]

Additional context Add any other context about the problem here.

Thank you! 🍻

Perfect-Web avatar Mar 10 '24 21:03 Perfect-Web

Experiencing this on pixel devices as well

Schloerhome avatar Mar 12 '24 10:03 Schloerhome

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

Knillis avatar Mar 12 '24 13:03 Knillis

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

Clooos avatar Mar 12 '24 17:03 Clooos

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

Clooos avatar Apr 14 '24 13:04 Clooos