diff --git a/index.js b/index.js index 1e85fb2..a452465 100644 --- a/index.js +++ b/index.js @@ -146,7 +146,7 @@ const removeFieldsHandler = (btn) => { nodeToDelete.parentNode.removeChild(nodeToDelete); } else { - const input = nodeToDelete.querySelector('input[type=hidden][name*="[_destroy]"'); + const input = nodeToDelete.querySelector('input[type=hidden][name*="[_destroy]"]'); if(input) { input.value = 1; }