From 1e904b7361cc399327d9d98ac8e89ab1b70e6942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Sun, 7 Jan 2024 11:22:57 +0100 Subject: [PATCH] ui: fix del-key cancel handling --- html/ui/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/ui/js/app.js b/html/ui/js/app.js index 2ed94e8..8f78bdc 100644 --- a/html/ui/js/app.js +++ b/html/ui/js/app.js @@ -79,6 +79,8 @@ createApp({ }) }, storeDelKey() { + event.preventDefault() + let name = this.forms.delKey.name if (!confirm("Remove key named "+JSON.stringify(name)+"?")) {