thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

Card-mod Popup Impacts Subview Back Button #362

Closed jmillnik closed 4 months ago

jmillnik commented 4 months ago

My Home Assistant version: 2024.2.5

My lovelace configuration method (GUI or yaml): GUI

What I am doing: Opening card-mod Popup with a button on a Subview.

What I expected to happen: After closing the card-mod Popup, the back button should take me to the dashboard page I navigated to the Subview from.

What happened instead: The back button requires n+1 presses to navigate to the previous dashboard page where n is the number of times the card mod popup was opened.

Minimal steps to reproduce:

  1. Create main view with navigation button to subview
  2. Create Subview
  3. Create button on Subview with a card-mod pop up
  4. Navigate to subview, open card mod, close card mod, press Subview back button. No navigation happens. Press again. Navigation works as expected.

Error messages from the browser console: No console error

By putting an X in the boxes ([]) below, I indicate that I:

ildar170975 commented 4 months ago

Opening card-mod Popup with a button on a Subview.

What is this? Post a code & a picture.

ildar170975 commented 4 months ago
  • Create button on Subview with a card-mod pop up

  • Navigate to subview, open card mod, close card mod, press Subview back button. No navigation happens. Press again. Navigation works as expected.

This has no sense. Are you sure you are posting in a correct repo?

jmillnik commented 4 months ago

Sorry - wrong thomasloven repo - was supposed to be for browser_mod. Moving and closing.