Skip to content

Commit

Permalink
Merge pull request #332 from esmero/ISSUE-331
Browse files Browse the repository at this point in the history
ISSUE-331: Removing autofocus on Views Exposed form Submit buttons
  • Loading branch information
DiegoPino authored Jun 30, 2023
2 parents c39af6e + ea884ea commit 97e4111
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ function format_strawberryfield_views_form_alter(&$form, FormStateInterface $for
if ($form_id == 'views_exposed_form') {
if (isset($form['actions']['submit'])) {
$form['actions']['#attached']['library'][] = 'format_strawberryfield_views/advanced-search-default-submit';
$form['actions']['submit']['#attributes']['autofocus'] = '';
$form['actions']['submit']['#attributes']['tabindex'] = 1;
$form['actions']['submit']['#attributes']['data-default-submit'] = '';
// Needed when multiple buttons are on the same form, by default the name is empty
Expand Down

0 comments on commit 97e4111

Please sign in to comment.