From 1df8b7be1b44227c4bb7adb0ae26f58c6ae3a9fb Mon Sep 17 00:00:00 2001 From: Darren Black Date: Tue, 14 Nov 2023 07:26:53 +1100 Subject: [PATCH] docs: update filter form doco (#116) --- lib/ash_phoenix/filter_form/filter_form.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ash_phoenix/filter_form/filter_form.ex b/lib/ash_phoenix/filter_form/filter_form.ex index 8f1c5f4..468071c 100644 --- a/lib/ash_phoenix/filter_form/filter_form.ex +++ b/lib/ash_phoenix/filter_form/filter_form.ex @@ -75,19 +75,19 @@ defmodule AshPhoenix.FilterForm do
Filter
<.input type="select" field={@component[:operator]} options={["and", "or"]} /> - <.button phx-click="add_filter_group" phx-value-component-id={@component.id} type="button"> + <.button phx-click="add_filter_group" phx-value-component-id={@component.source.id} type="button"> Add Group <.button phx-click="add_filter_predicate" - phx-value-component-id={@component.id} + phx-value-component-id={@component.source.id} type="button" > Add Predicate <.button phx-click="remove_filter_component" - phx-value-component-id={@component.id} + phx-value-component-id={@component.source.id} type="button" > Remove Group @@ -119,7 +119,7 @@ defmodule AshPhoenix.FilterForm do <.input field={@component[:value]} /> <.button phx-click="remove_filter_component" - phx-value-component-id={@component.id} + phx-value-component-id={@component.source.id} type="button" > Remove