Skip to content

Commit

Permalink
Focus add field button after removing field.
Browse files Browse the repository at this point in the history
Removing a field would then lose focus, cancelling out the screen
reader alert. Providing the next focus element restores the alert.
  • Loading branch information
kimisgold committed Oct 24, 2024
1 parent babcba0 commit f671b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/views/scripts/javascripts/items-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Omeka.Search = {};
$(button).parent().remove();
handleRemoveButtons();
updateAdvancedSearchCount('#search-narrow-by-fields', '#search-narrow-by-field-alerts', '.search-entry');
addButton.focus();
}

/**
Expand Down

0 comments on commit f671b33

Please sign in to comment.