-
Notifications
You must be signed in to change notification settings - Fork 225
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
tap_action executed despite being in lock state #688
Comments
Perhaps bug is associated because you also have
Allthough it's empty, perhaps that's what causes he bug to exempt everything? Try it with that part removed. I have latest button-card and never had this issue, have multiple locked buttons. Also good to state the HA version you are using. Could also be a HA frontend change that breaks it. |
Tried without the exemptions part, didn't work. For me, it was also working fine. not sure when it got broken :( |
Seeing as how you're running HA 2023.5.2, most likely that's where it got broken. Sadly the frontend update that came with 2023.5.x has broken multiple things, like z-index. Which causes the lock to show above popups and dialogs now as well. Chances are this also broke the way the lock functions, since the z-index has changed. I updated to 2023.5.2 yesterday and after seeing the z-index issues with browser_mod and button-card I reverted to 2023.4.6 for the time being. |
I did some digging with the browser debug window and determined that there was a crucial css variable missing in my theme to ensure a proper z-index of the dialog. I added this to my theme: dialog-z-index: 100
mdc-dialog-z-index: 100 The first one is what did it, but both were missing. |
Could you please try the latest beta? |
I am with the latest version 3.5.0. I removed the lock icon style. and now it is working fine. I am unsure whether it relates to browser mod or some other modules. |
Checklist
Describe the bug
When I press the button, whether it is locked or not locked, tap_action executes.
Version of the card
Version: 3.5
To Reproduce
This is the configuration I used:
Screenshots
![msedge_2023-04-26_15-33-48](https://user-images.githubusercontent.com/59896374/234592198-3ef7ce91-d304-439a-8360-cfd272930c69.gif)
Expected behavior
When the icon is locked, i expect nothing happens when i click the button
Desktop (please complete the following information):
Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest
The text was updated successfully, but these errors were encountered: