From c745bf8d212e8a23564867fd4dd683c5eee21eac Mon Sep 17 00:00:00 2001 From: nedhgx Date: Fri, 30 Aug 2024 10:46:42 -0700 Subject: [PATCH] Fixed index_editable in Backpex.Fields.Number --- lib/backpex/fields/number.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backpex/fields/number.ex b/lib/backpex/fields/number.ex index e3711091..7aa92e85 100644 --- a/lib/backpex/fields/number.ex +++ b/lib/backpex/fields/number.ex @@ -75,7 +75,7 @@ defmodule Backpex.Fields.Number do end @impl Phoenix.LiveComponent - def handle_event("update-field", %{"index_form" => %{"index_input" => value}}, socket) do + def handle_event("update-field", %{"index_form" => %{"value" => value}}, socket) do Backpex.Field.handle_index_editable(socket, value, Map.put(%{}, socket.assigns.name, value)) end