Prevent delete target from accidentally changing inside deck manager

Right now it’s possible to:
Select Deck 1
Click the delete icon
Select Deck 2 while the delete confirmation is active
Confirm delete

Only Deck 2 gets deleted. Wouldn’t be safer to lock in Deck 1 as the delete target while the confirmation screen is visible?

Here’s a video showing the issue.