Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Have to click card twice to get it to disappear #88

Open
SK360 opened this issue Jan 26, 2022 · 3 comments
Open

[BUG] Have to click card twice to get it to disappear #88

SK360 opened this issue Jan 26, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@SK360
Copy link

SK360 commented Jan 26, 2022

Describe the bug
As of recent updates when I click the card to hide it, it pops right back in. When I click it again it hides like normal

To Reproduce
Steps to reproduce the behavior:

  1. Click card

Expected behavior
Card hides on first click

Card config
type: vertical-stack
cards:

  • type: custom:garbage-collection-card
    entity: sensor.trash
    icon_size: 35px
    icon_color: black
    hide_date: false
    hide_on_click: true
    hide_before: 3
  • type: custom:garbage-collection-card
    entity: sensor.recycle
    icon_size: 35px
    icon_color: green
    hide_date: false
    hide_on_click: true
    hide_before: 3

Environment (please complete the following information):

  • Garbage Collection Card version: 1.20.0
  • Garbage Collection integration: 4.2
  • HomeAssistant: 2021.12.10
  • Browser: FullyKiosk Browser, HomeAssistant App
  • Browser language: English

Additional context
This only started with a recent update to either HA or the Garbage collection integration

@SK360 SK360 added the bug Something isn't working label Jan 26, 2022
@amaximus
Copy link
Owner

I could not reproduce it in a web browser (Chrome).
I could, however, reproduce it with the Android HomeAssitant App, but after I turned on debugging for this component and had to restart HA, I could not reproduce it any more.

I'll run some tests again and will get back to you.

@genehand
Copy link

genehand commented Apr 2, 2022

I'm also using the fully kiosk browser on an android tablet. When I click it, it disappears briefly, comes back for a few seconds, then disappears again. What happens if you click it once and wait?

@amaximus
Copy link
Owner

amaximus commented Apr 2, 2022

Most probably the fully kiosk browser has a not fully compatible implementation of the onClick event or the addEventListener method.
At click - through the added onClick listener - the card simply sets the display style of the card to none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants