I copied some custom UI code from the forum and made my own PTZ controls for a cheap wifi camera. I was having trouble with the button events firing the details popup (the small window that shows state history) for the script.
There are some topics pointing to the ev.stopPropagation function to handle this but it was not working for me. I then started looking around more generally for the same issue but outside Home Assistant and it turns out the solution to stop the events from triggering the details popup is this:
ev.detail.sourceEvent.stopPropagation();
Anyway just wanted to share. Hope it helps! Thanks,
Do you recall where you found this fix? It seems to work well for my PC browsers (click events) but not my iOS browsers (touch events). Trying to find more information as I can’t get stopPropagation() to work on iOS devices.
Thanks, I ended up figuring out my own problem with stopPropagation. For reasons I still don’t understand, every time I clicked a button I would get the history popup. I ended up adding an on-click event to the button group and everything started working.