app/components/avo/fields/file_field/edit_component.html.erb in avo-2.21.1.pre.pr1476 vs app/components/avo/fields/file_field/edit_component.html.erb in avo-2.21.1.pre.pr1484
- old
+ new
@@ -8,10 +8,10 @@
<% if @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %>
<%= @form.file_field @field.id,
accept: @field.accept,
data: @field.get_html(:data, view: view, element: :input),
direct_upload: @field.direct_upload,
- disabled: @field.is_readonly?,
+ disabled: disabled?,
style: @field.get_html(:style, view: view, element: :input),
class: "w-full"
%>
<% end %>
<% end %>