DBuit / light-popup-card

Lovelace card to use as custom pop-up for light in homekit style
168 stars 38 forks source link

Popup doesn't close when clicking on backdrop #97

Open firstascentak opened 1 year ago

firstascentak commented 1 year ago

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