We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db3dc3b + 30e7710 commit b4e4b87Copy full SHA for b4e4b87
docs/js/FileValidator.js
@@ -94,7 +94,10 @@ class FileValidator {
94
const removeButton = document.createElement("button");
95
removeButton.textContent = " ";
96
removeButton.className = "btn-file-rm";
97
- removeButton.addEventListener("click", () => this.removeFile(file, listItem));
+ removeButton.addEventListener("click", (event) => {
98
+ event.stopPropagation(); // Prevent event from bubbling up to modal
99
+ this.removeFile(file, listItem);
100
+ });
101
102
listItem.append(removeButton);
103
0 commit comments