1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-15 01:49:55 +00:00

Ensure cancel button in login prompt doesn't also submit form

Fixes #2561
This commit is contained in:
Jermolene 2016-08-29 19:13:25 +01:00
parent 3ad8cf59bd
commit 06b7de415c

View File

@ -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) {