Skip to content

Commit

Permalink
JQMIGRATE: jQuery.fn.submit() event shorthand is deprecated rails#299
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamouse committed Feb 23, 2024
1 parent 12869da commit ef7b4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery_ujs.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
if (target) { form.attr('target', target); }

form.hide().append(metadataInput).appendTo('body');
form.submit();
form.trigger('submit');
},

// Helper function that returns form elements that match the specified CSS selector
Expand Down

0 comments on commit ef7b4b6

Please sign in to comment.