The delete library button was not only opening the confirmation modal but also submitted the edit library form, causing the modal to close again.
Fixes #1272 (closed)