In a Phoenix LiveView application and I have a form where I am in :edit action I would like get an event when the select box is pre-selected to load other values. I only get the event when the user select a new value manually.
<.simple_form
for={@form}
id="release_artifact_version-form"
phx-target={@myself}
phx-change="validate"
phx-submit="save"
>
<.input field={@form[:type]} type="select" prompt="Select Artifact Type" label="Artifact type" options={Enum.map(@artifact_type_collection, fn artifact_type -> {artifact_type.name, artifact_type.id} end)} />






















