Sha256: c890431346cc2e8a7d2d2ee9f1ec09be29a97da6573db4ebfe16a231072dacab

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 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: @field.is_readonly?,
    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

4 entries across 4 versions & 1 rubygems

Version Path
avo-2.21.1.pre.pr1476 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.1.pre.issue1450 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.21.1.pre.issue1444 app/components/avo/fields/select_field/edit_component.html.erb
avo-2.20.0 app/components/avo/fields/select_field/edit_component.html.erb