Skip to content

Commit 73efb06

Browse files
authored
Merge pull request #3361 from AlchemyCMS/backport/7.4-stable/pr-3358
[7.4-stable] Alchemy TinyMCE: Remove frontend presence validation
2 parents 01f94bc + 6893597 commit 73efb06

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

app/views/alchemy/ingredients/_page_editor.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<%= f.text_field :page_id,
88
value: page_editor.page&.id,
99
id: page_editor.form_field_id(:page_id),
10-
required: page_editor.presence_validation?,
1110
class: 'full_width' %>
1211
<% end %>
1312
<% end %>

app/views/alchemy/ingredients/_richtext_editor.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<%= f.text_area :value,
1010
minlength: richtext_editor.length_validation&.fetch(:minimum, nil),
1111
maxlength: richtext_editor.length_validation&.fetch(:maximum, nil),
12-
required: richtext_editor.presence_validation?,
1312
id: richtext_editor.form_field_id(:value) %>
1413
<% end %>
1514
<% end %>

app/views/alchemy/ingredients/_select_editor.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
<%= f.select :value, options_tags, {}, {
2525
id: select_editor.form_field_id,
2626
class: ["ingredient-editor-select"],
27-
is: "alchemy-select",
28-
required: select_editor.presence_validation?
27+
is: "alchemy-select"
2928
} %>
3029
<% end %>
3130
<% end %>

0 commit comments

Comments
 (0)