mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 23:16:53 +00:00
Ensure cancel button in login prompt doesn't also submit form
Fixes #2561
This commit is contained in:
parent
3ad8cf59bd
commit
06b7de415c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user