openrift icon indicating copy to clipboard operation
openrift copied to clipboard

Deleting a deck opens the deck editor

Open authorbynight2 opened this issue 5 months ago • 2 comments

What happened?

I deleted a deck and expected to see a "deck deleted" message. Instead, the deck editor opened up, showing the deck I just deleted. The deck wasn't there anymore when I went back to the "decks" screen.

Steps to reproduce

  1. Go to the "decks" page
  2. Click on the three dots on the bottom of the deck
  3. Select "Delete"
  4. Click "Delete" again to confirm
  5. Deck Editor opens up

Screenshots

Image Image

Browser and device

Brave Browser on Windows

authorbynight2 avatar Jun 15 '26 14:06 authorbynight2

Thanks for the detailed report, will have a look at this!

eikowagenknecht avatar Jun 15 '26 16:06 eikowagenknecht

Fixed in 90e8c3ee.

What was happening: the deck tiles and list rows wrap their whole body (including the actions menu and its confirm dialog) in a link to the deck editor. The delete confirmation dialog is rendered into a portal at the end of the page, but React still routes click events through the component tree, so confirming "Delete" counted as a click on the deck link and navigated you into the editor for the deck you'd just removed. The deletion itself worked, which is why it was gone when you went back.

The dialog now stops clicks from leaking out to the surrounding link, so confirming a delete just deletes and leaves you on the decks page. Added a regression test so it can't come back.

Thanks for the clear repro steps and screenshots, they made this quick to track down. This will go out with the next deploy.

eikowagenknecht avatar Jun 16 '26 08:06 eikowagenknecht