Deleting a deck opens the deck editor
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
- Go to the "decks" page
- Click on the three dots on the bottom of the deck
- Select "Delete"
- Click "Delete" again to confirm
- Deck Editor opens up
Screenshots
Browser and device
Brave Browser on Windows
Thanks for the detailed report, will have a look at this!
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.