From 4a1325eadf322b0f6619dc302e20eb85b6ff3a5b Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 2 Aug 2022 18:26:26 +0200 Subject: [PATCH] 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. --- .../conditions_component/conditions_component.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/types_de_champ_editor/conditions_component/conditions_component.html.haml b/app/components/types_de_champ_editor/conditions_component/conditions_component.html.haml index ed2bbe0ba..bd71535d4 100644 --- a/app/components/types_de_champ_editor/conditions_component/conditions_component.html.haml +++ b/app/components/types_de_champ_editor/conditions_component/conditions_component.html.haml @@ -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