fix(view_component): replace form_with with unaffected buffer form_tag helper

form_with/form_for have buffer issues (at least with turbo).

form_tag seems not affected.
This commit is contained in:
Colin Darie 2022-08-02 18:26:26 +02:00
parent 76150c4bf5
commit 4a1325eadf

View file

@ -1,5 +1,5 @@
.flex.justify-start.section{ id: dom_id(@tdc.stable_self, :conditions) }
= form_with url: admin_procedure_condition_path(@procedure_id, @tdc.stable_id), method: :patch, class: 'form width-100' do |f|
= form_tag admin_procedure_condition_path(@procedure_id, @tdc.stable_id), method: :patch, class: 'form width-100' do
.conditionnel.mt-2.width-100
.flex
%p.mr-2 Logique conditionnelle