fix(turbo): PJ deletion: turbo: true must be set on button in addition to form

This commit is contained in:
Colin Darie 2023-06-08 11:16:55 +02:00
parent f6811e6ef6
commit 61bc59109d
4 changed files with 4 additions and 4 deletions

View file

@ -8,6 +8,6 @@
- @champ.rows.each do |champs|
= render EditableChamp::RepetitionRowComponent.new(form: @form, champ: @champ, row: champs, seen_at: @seen_at)
.actions{ 'data-turbo': 'true' }
.actions
= render NestedForms::OwnedButtonComponent.new(formaction: champs_repetition_path(@champ.id), http_method: :create, opt: { class: "fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-add-circle-line fr-mb-3w", title: t(".add_title", libelle: @champ.libelle), id: dom_id(@champ, :create_repetition)}) do
= t(".add", libelle: @champ.libelle)