We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db3dc3b commit 30e7710Copy full SHA for 30e7710
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