mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 23:15:24 +02:00
Use condition remove instead of element remove for condition groups so prefix logic runs
This commit is contained in:
parent
849e820225
commit
1058d17b36
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
<% condition = form.object %>
|
||||
<% rule = condition.rule %>
|
||||
|
||||
<li data-controller="rule--conditions element-removal" class="border border-secondary rounded-md p-4 space-y-3">
|
||||
<li data-controller="rule--conditions" class="border border-secondary rounded-md p-4 space-y-3">
|
||||
|
||||
<%= form.hidden_field :condition_type, value: "compound" %>
|
||||
|
||||
|
@ -20,9 +20,9 @@
|
|||
|
||||
<%= icon(
|
||||
"trash-2",
|
||||
size: "sm",
|
||||
as_button: true,
|
||||
data: { action: "element-removal#remove" }
|
||||
size: "sm",
|
||||
data: { action: "rule--conditions#remove" }
|
||||
) %>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue