Skip to content

more-info dialog always opens on tap if button-card is placed inside entities card #200

@hcoohb

Description

@hcoohb

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser

Describe the bug
If the button card is placed inside and entities card, no matter what tap_action I provide, the more-info dialog opens (and the action is also performed)

Version of the card
Version: 1.11.1

To Reproduce
This is the configuration I used:

  - type: entities
    entities:
    - type: "custom:button-card"
      entity: switch.sw1
      name: Button in entities
      tap_action: 
        action: toggle
      
  - type: "custom:button-card"
    entity: switch.sw1
    name: Button
    tap_action: 
      action: toggle

Expected behavior
I would expect the more-dialog to not show unless it is the action provided in tap_action

Desktop (please complete the following information):

  • Browser chrome Win, Linux
  • Version 75

Smartphone (please complete the following information):

  • Device: oneplus6
  • OS: Android 9
  • Browser Chrome
  • Version ?

Additional context
Only seems to appear when the button card is inside entities, however, it is the only way I have found to be able to stack vertically 2 buttons and be able to style the background nicely using card-mod

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions