Skip to content

Commit

Permalink
fix: remove multiple attribute from select for one_of fields (#115)
Browse files Browse the repository at this point in the history
This removes the 'multiple' attribute from the select input in case the field is an atom field with the `one_of` option set.
  • Loading branch information
hl authored Nov 13, 2023
1 parent 23216f8 commit 6f8a53b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/ash_phoenix/gen/live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ defmodule AshPhoenix.Gen.Live do
<.input
field={@form[#{inspect(field.name)}]}
type="select"
multiple
label="#{label(field.name)}"
options={Ash.Resource.Info.attribute(#{inspect(resource)}, #{inspect(field.name)}).constraints[:one_of]}
/>
Expand Down

0 comments on commit 6f8a53b

Please sign in to comment.