Skip to content

Commit

Permalink
fix(ImageCropper): Add dom ids to picture crop fields
Browse files Browse the repository at this point in the history
These DOM ids have been removed in cb49ce8
to remove duplicated DOM ids.

But we need DOM ids for the image cropper
to work.

Fixed by adding unique DOM ids for these fields.

Closes #2216
  • Loading branch information
tvdeyen committed Nov 23, 2021
1 parent 32c7a1e commit c2c2dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/alchemy/ingredients/_picture_editor.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<%= f.hidden_field :link_title, data: { link_title: true }, id: nil %>
<%= f.hidden_field :link_class_name, data: { link_class: true }, id: nil %>
<%= f.hidden_field :link_target, data: { link_target: true }, id: nil %>
<%= f.hidden_field :crop_from, data: { crop_from: true }, id: nil %>
<%= f.hidden_field :crop_size, data: { crop_size: true }, id: nil %>
<%= f.hidden_field :crop_from, data: { crop_from: true }, id: picture_editor.form_field_id(:crop_from) %>
<%= f.hidden_field :crop_size, data: { crop_size: true }, id: picture_editor.form_field_id(:crop_size) %>
<% end %>
<% end %>

0 comments on commit c2c2dd0

Please sign in to comment.