diff --git a/app/views/shared/_accessible_submit_button.html.erb b/app/views/shared/_accessible_submit_button.html.erb index c69122d..fcf38f5 100644 --- a/app/views/shared/_accessible_submit_button.html.erb +++ b/app/views/shared/_accessible_submit_button.html.erb @@ -17,6 +17,7 @@ // Allow the 'button disabled' tooltip to appear if the button is NOT clickable $("#<%= id %>").on('click focus', function(e){ if($(this).attr('clickable') != 'true'){ + e.preventDefault(); $("#<%= id %>_tip").attr('role', 'tooltip'); }else{ $("#<%= id %>_tip").attr('role', '');