app/components/avo/fields/country_field/edit_component.html.erb in avo-2.10.2 vs app/components/avo/fields/country_field/edit_component.html.erb in avo-2.10.3.pre.1
- old
+ new
@@ -1,9 +1,15 @@
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal do %>
- <%= @form.select @field.id, @field.select_options, { selected: @field.value, prompt: @field.placeholder },
+ <%= @form.select @field.id, @field.select_options, {
+ 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.readonly,
- placeholder: @field.placeholder,
- style: @field.get_html(:style, view: view, element: :input)
+ style: @field.get_html(:style, view: view, element: :input),
+ placeholder: @field.include_blank.present? ? nil : @field.placeholder
%>
<% end %>