@kollegorna/cocoon-vanilla-js
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -134,4 +134,4 @@ let cocoon_element_counter = 0; | ||
else { | ||
const input = btn.previousElementSibling; | ||
if(input && input.matches('input[type=hidden]')) { | ||
const input = nodeToDelete.querySelector('input[type=hidden][name*="[_destroy]"'); | ||
if(input) { | ||
input.value = 1; | ||
@@ -138,0 +138,0 @@ } |
{ | ||
"name": "@kollegorna/cocoon-vanilla-js", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A vanilla JS replacement for (Rails) Cocoon's jQuery script", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # cocoon-vanilla-js | ||
Replace `<commit>` with the corresponding values: | ||
Run: | ||
@@ -10,0 +10,0 @@ ``` |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10699
9
1