From 06b7de415cd2cef3848f2ef2516200ee79afd130 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 29 Aug 2016 19:13:25 +0100 Subject: [PATCH] Ensure cancel button in login prompt doesn't also submit form Fixes #2561 --- boot/boot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/boot.js b/boot/boot.js index 779237669..80a78d62e 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -514,6 +514,9 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) { if(options.canCancel) { children.push(dm("button",{ text: $tw.language.getString("Encryption/Cancel"), + attributes: { + type: "button" + }, eventListeners: [{ name: "click", handlerFunction: function(event) {