Closed AndLindemann closed 4 months ago
Hi, I'm not sure if this can help but can you try to add this card inside an horizontal stack?
Unfortunately that doesn't help. Popup will still close on any interaction.
Thank you for the details, I will take a closer look at this.
Hi, I've added the possibility to disable the « close by clicking outside » pop-up feature in the editor (in v2.0.0-rc-1). You can change this behavior in YAML by adding close_by_clicking_outside: false
.
I really hope that this will fix your issue 🤞
I saw that and gave it a try. Interestingly, this very simple card still closes when clicking outside:
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: "#energie"
name: Energie
close_by_clicking_outside: false
show_icon: true
button_type: name
icon: mdi:solar-power-variant
margin_top_mobile: "-56px"
While this seemingly also uncomplicated card, does not:
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: "#auto"
close_by_clicking_outside: false
button_type: name
name: Wallbox
icon: mdi:ev-station
card_layout: normal
bg_opacity: "10"
hide_backdrop: false
shadow_opacity: "0"
bg_blur: "14"
margin_top_mobile: "-56px"
button_action:
tap_action:
action: url
url_path: "http://something"
double_tap_action:
action: none
hold_action:
action: none
tap_action:
action: url
url_path: "http://something"
double_tap_action:
action: none
hold_action:
action: none
Is that weird? What am I missing?
Have you refreshed the page after toggling it? If you did refreshed this is really weird indeed.
Also to be sure is close_by_clicking_outside: false
fixing your issue?
This seems to work for me now, thanks. With close_by_clicking_outside, I can interact with the graphs without closing the popup.
Glad that it's working now!
Describe the bug
Not entirely sure this is a bubble card bug, but when I have a plotly-graph card in a bubble popup, any interaction with that graph card will close the popup, despite close_on_click being set to false. This happens on the desktop only (Firefox/Windows tested). On mobile, I can drag the plotly graph without issues, but on the desktop whenever I drag the graph or click one of the buttons on the plotly card, it closes the popup.
To Reproduce
Expected behavior
Being able to interact with the plotly graph card without closing the popup.
Screenshots
n/a
Informations (please complete the following information):
Additional context
n/a
Thank you! 🍻