app/components/avo/fields/trix_field/edit_component.html.erb in avo-2.21.0 vs app/components/avo/fields/trix_field/edit_component.html.erb in avo-2.21.1.pre.issue1444
- old
+ new
@@ -1,8 +1,7 @@
<%= field_wrapper **field_wrapper_args, full_width: true do %>
- <%= content_tag :div,
- class: "relative block overflow-x-auto max-w-full",
+ <%= content_tag :div, class: "relative block overflow-x-auto max-w-full",
data: {
controller: "trix-field",
trix_field_target: "controller",
resource_name: resource_name,
resource_id: resource_id,
@@ -23,10 +22,10 @@
<%== @field.value %>
<% end %>
<%= @form.text_area @field.id,
class: classes("w-full hidden"),
data: @field.get_html(:data, view: view, element: :input),
- disabled: disabled?,
+ disabled: @field.is_readonly?,
id: trix_id,
placeholder: @field.placeholder,
style: @field.get_html(:style, view: view, element: :input)
%>
<% end %>