Skip to content

Commit

Permalink
fix: remove client-side validation on action forms (#2862)
Browse files Browse the repository at this point in the history
Co-authored-by: gabrielgiroe1 <[email protected]>
  • Loading branch information
adrianthedev and gabrielgiroe1 committed Jun 19, 2024
1 parent fa7d182 commit 5bcd3ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/views/avo/actions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<%= form_with scope: 'fields',
url: Avo::Services::URIService.parse(@resource.records_path).append_paths("actions").to_s,
local: true,
html: {
novalidate: true,
},
data: {
action_target: :form,
**@action.class.form_data_attributes,
Expand Down
2 changes: 1 addition & 1 deletion spec/system/avo/tabs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
find('[aria-label="February 9, 1988"]').click
save

expect(current_path).to eq avo.resources_user_path user
expect(page).to have_current_path avo.resources_user_path(user)
expect(find_field_value_element("birthday")).to have_text "Tuesday, 9 February 1988"
end

Expand Down

0 comments on commit 5bcd3ac

Please sign in to comment.