From e4d8f6d5c1c1c40f657b6b825da7aaf2aea849ec Mon Sep 17 00:00:00 2001 From: Daru13 Date: Thu, 24 Sep 2020 18:00:33 +0200 Subject: [PATCH] Use a more specific selector for deletion checkboxes. --- fiches/static/fiches/js/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiches/static/fiches/js/forms.js b/fiches/static/fiches/js/forms.js index 916c775..7856a5e 100644 --- a/fiches/static/fiches/js/forms.js +++ b/fiches/static/fiches/js/forms.js @@ -9,7 +9,7 @@ class SubEntry { this.subEntryElement = subEntryElement; this.removeButtonElement = subEntryElement.querySelector(".remove-button"); - this.deletionCheckboxElement = subEntryElement.querySelector("input[type=checkbox]"); + this.deletionCheckboxElement = subEntryElement.querySelector("input[id$='DELETE']"); this.addPlaceholderAttributes(); this.startHandlingSubEntryRemoveButtonClicks();