mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 07:26:54 +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) {
|
if(options.canCancel) {
|
||||||
children.push(dm("button",{
|
children.push(dm("button",{
|
||||||
text: $tw.language.getString("Encryption/Cancel"),
|
text: $tw.language.getString("Encryption/Cancel"),
|
||||||
|
attributes: {
|
||||||
|
type: "button"
|
||||||
|
},
|
||||||
eventListeners: [{
|
eventListeners: [{
|
||||||
name: "click",
|
name: "click",
|
||||||
handlerFunction: function(event) {
|
handlerFunction: function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user