Skip to content

[Bug]: Assigning popup parameter initial_style may not apply #1073

@cadavre

Description

@cadavre

My Home Assistant Version

Browser Mod: 2.6.3

I've noticed there probably something really wrong with assigning new popup parameters. I noticed this when tried to have just a single style for all my popups.

Case 1:

  1. Open:
  "dismissable": true,
  "initial_style": "classic",
  "tag": "camera",
  "content": { // Card #1

Narrow popup opens.

  1. Open:
{
  "dismissable": true,
  "initial_style": "wide",
  "tag": "camera",
  "content": { // Card #2

Wide popup opens.

  1. Open:
  "dismissable": true,
  "initial_style": "classic",
  "tag": "camera",
  "content": { // Card #1

Popup opens that is again: wide.

Only if I close "initial_style": "wide" with browser_mod.close_popup I'm able to re-open narrow popup again.

I also noticed that other parameters are often mixed up, like autoclose or dismissable being (de)activated when they shouldn't.

This looks like some browser-side object storing options is not garbage-collected well.

What I am doing

Opening popups with different sizes.

What I expect to happen

Opened popups are having different sizes.

What happened instead

Opened popups are having same sizes.

Minimal steps to reproduce

  1. Open popup w/ "initial_style": "classic" – narrow opens.
  2. Open popup w/ "initial_style": "wide" – wide opens.
  3. Open popup w/ "initial_style": "classic"wide opens.
  4. Open popup w/ "initial_style": "wide" – wide opens.
  5. Close popup via service.
  6. Open popup w/ "initial_style": "classic"narrow opens.

Include any yaml code here

Error messages from the browser console

n/a

By checking each box below I indicate that I ...

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
  • Have made sure I am using the latest version of the plugin.
  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
  • If this issue is to do with an Android device losing connection, sensors becoming unavailable etc., please confirm you have read, understood and tried methods described in Wiki Article Andoird Devices 'Always On'

Metadata

Metadata

Assignees

No one assigned

    Labels

    beta release availableIssue fixed in a beta release which is available for testing.bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions