diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index ffdc56f0..9f80f0ec 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -23,6 +23,9 @@ Rails.start(); * Dependencies */ +// Vanilla Nested for nested dynamic forms +import "vanilla-nested"; + // ChartKick for charts import "chartkick/chart.js"; diff --git a/package.json b/package.json index e6cee8d3..3c5eadf7 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "chart.js": "^3.5.1", "chartkick": "^4.0.5", "petite-vue": "^0.3.0", + "vanilla-nested": "arielj/vanilla-nested", "webpack": "^4.46.0", "webpack-cli": "^3.3.12" }, diff --git a/yarn.lock b/yarn.lock index e6660cc3..21c1e838 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6731,6 +6731,10 @@ v8-compile-cache@^2.1.1: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== +vanilla-nested@arielj/vanilla-nested: + version "1.4.0" + resolved "https://codeload.github.com/arielj/vanilla-nested/tar.gz/20fbf3f790521f45d19e6dbadcd596bc11912dd1" + vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"