Sha256: 7ffdaab4f7e9c1421f5f081734024ba792e03b113fff43596db5daefe65711e3

Contents?: true

Size: 601 Bytes

Versions: 35

Compression:

Stored size: 601 Bytes

Contents

<%= field_wrapper **field_wrapper_args do %>
  <%= @form.select @field.id, options_for_select(@field.options_for_select, selected: @field.value), {
      include_blank: @field.include_blank
    },
    aria: {
      placeholder: @field.placeholder
    },
    class: classes("w-full"),
    data: @field.get_html(:data, view: view, element: :input),
    disabled: disabled?,
    style: @field.get_html(:style, view: view, element: :input),
    value: @field.model.present? ? @field.model[@field.id] : @field.value,
    placeholder: @field.include_blank.present? ? nil : @field.placeholder
  %>
<% end %>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
avo-2.26.1.pr1584.pre.1 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.25.1.pre.1.pr1579 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.26.0 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.25.0 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.24.1 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.24.0 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.23.3.pre.1.pr1529 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.23.2 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.23.1 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.23.0 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.22.0 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.3.pre.pr1489 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.2.pre.pr1486 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.1.pre.pr1484 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.0 app/components/avo/fields/select_field/edit_component.html.erb