light-popup-card icon indicating copy to clipboard operation
light-popup-card copied to clipboard

Popup doesn't close when clicking on backdrop

Open firstascentak opened this issue 3 years ago • 0 comments

I used to have this all working but now that popup_cards has been deprecated I'm trying to get it working with Browser Mod.

Everything basically works aside from the fact that the popup no longer closes when clicking on the backdrop. the only way I can get it to close is with the ESC key, but that won't work with a touch screen.

Here is what I have so far.

cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            title: Lights
            cards:
              - type: custom:button-card
                entity: my.entity
                name: Kitchen
                icon: anIcon
                hold_action:
                  action: fire-dom-event
                  browser_mod:
                    service: browser_mod.popup
                    deviceID: this
                    data:
                      content:
                        type: custom:light-popup-card
                        entity: my.entity
                        name: Living Room

firstascentak avatar Feb 26 '23 20:02 firstascentak