Skip to content

Commit

Permalink
Fix bug with buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Oct 22, 2020
1 parent a9ddf8a commit 7a3eed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function createInput(module, key, type, stored, formCallback, defaultValue = mod
} else if (type === "button") {
input = document.createElement("button");

input.addEventListener("click", defaultValue[key]);
input.addEventListener("click", defaultValue);
input.innerText = prettifyString(key);
input.id = uuid;
input.classList = type + " data";
Expand Down

0 comments on commit 7a3eed1

Please sign in to comment.