Skip to content

[2.5.0-beta.8] After sliding, 2 clicks are needed to switch off slider button #1348

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

Closed
infinicode opened this issue Mar 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@infinicode
Copy link

Describe the bug
With the new sliders in 2.5.0-beta.8, sometimes you need two "clicks" on the button to switch it off. This happens both on Mobile (Android) and Web, but it's more common on mobile (happens almost every time).

To Reproduce
Steps to reproduce the behavior:

  1. Slide one button (from off, or already in on state)
  2. Click on the button to switch it off (it does not switch of)
  3. Click again on the button to switch it off (it does switch of)

Expected behavior
After sliding, if the button is clicked, it should switch off.

Screenshots
Screen capture

YAML
If applicable, add any relevant YAML code.

type: custom:bubble-card
card_type: button
entity: light.tv_lamp
layout_options:
  grid_columns: 2
  grid_rows: 1
card_layout: large
name: Lamp TV
hold_action:
  action: more-info
button_type: slider
tap_action:
  action: toggle
icon: phu:ikea-paparlamp
modules:
  - default
tap_to_slide: false
step: 5

Informations (please complete the following information):

  • OS: [Android 15]
  • Bubble Card version: [2.5.0-beta.8 ]
  • Home Assistant version: [2025.3.2]

Thank you! 🍻

@infinicode infinicode added the bug Something isn't working label Mar 19, 2025
Clooos added a commit that referenced this issue Mar 23, 2025
- [x] CHANGE: To avoid too many custom style breaks, I’ve made the reordering of the sub-buttons in a card with at least 2 rows optional, this is why there is now a new card layout named « Large with sub-buttons in a grid (Layout: min. 2 rows) ». This change should really improve compatibility with older custom styles and modules. #1350
- [x] Fixed an issue in the « Get state/attribute from other entities » module, now empty state/attributes are correctly removed.
- [x] Fixed an issue where opening a pop-up was forcing the page to go back to the top
- [x] Removed: Sub-button’s icon and label color is now changing based on the background color for better contrast and readability (will be re-added in a future release if needed) #1343
- [x] Fixed sub-buttons on a slider with « tap to slide » no longer work. #1358
- [x] Added the vibration feedback on all elements #1354
- [x] Added a visual feedback when the main icon is clicked or tapped
- [x] Fixed slider tap actions that were not always triggered #1348
- [x] Improved slider responsiveness
- [x] Sliders now show the correct value with the correct unit or measurement in all cases when sliding
- [x] Fixed an issue where sub-buttons were not aligned correctly in a media player card when all buttons are hidden #1347
- [x] Fixed an issue where the dropdown was not always in front of some elements #1344 #1349
- [x] Icon not changing anymore in a select sub-button with a list containing icons (like for the climate card) #1339
- [x] Fixed the button’s editor that was broken in v2.5.0-beta.8 #1342
- [x] Fixed the size of the play button in a media player card when the card layout is « Normal »
@Clooos
Copy link
Owner

Clooos commented May 11, 2025

Hi! Can you tell me if this issue is now fixed in the latest beta? 🙂

@Clooos Clooos closed this as completed May 27, 2025
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

2 participants