From 35f6017ab8bae554eface81258312795ad986d40 Mon Sep 17 00:00:00 2001 From: Guillaume Briday Date: Sat, 31 Oct 2020 12:41:32 +0100 Subject: [PATCH] Adding support to remove field --- CHANGELOG.md | 4 ++++ README.md | 29 ++++++++++++++++++++++------- index.html | 44 +++++++++++++++++++++++++++++++++----------- src/index.js | 17 +++++++++++++++++ 4 files changed, 76 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae5dd3c..ee8caa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## Changed + +- Adding `remove` support. + ## [1.0.0] - 2020-10-15 ### Added diff --git a/README.md b/README.md index 95149fe..ebcbd60 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ To DRY up the code, we extract the fields in a partial called `todo_form` to use In your view: ```html -<%= form_with model: @user, data: { controller: 'nested-form' } do |f| %> +<%= form_with model: @user, data: { controller: 'nested-form', nested_form_wrapper_selector: '.nested-form-wrapper' } do |f| %>