1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Use condition remove instead of element remove for condition groups so prefix logic runs

This commit is contained in:
hatz 2025-05-10 12:59:24 -05:00
parent 849e820225
commit 1058d17b36
No known key found for this signature in database

View file

@ -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>