Skip to content

Commit

Permalink
Fixed index_editable in Backpex.Fields.Number
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxinghuang committed Aug 30, 2024
1 parent cfcffec commit c745bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backpex/fields/number.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c745bf8

Please sign in to comment.