Skip to content

Commit

Permalink
QS: Fix for issue when closing suggestion list when there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
GormFrank committed Feb 28, 2025
1 parent b51a919 commit a5733d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,11 @@ function openSuggestionsBox() {
searchBoxElement.setAttribute( 'aria-expanded', 'true' );
}

// open the suggestions box
// close the suggestions box
function closeSuggestionsBox() {
if( !suggestionsElement ) {
return;
}
suggestionsElement.hidden = true;
activeSuggestion = 0;
searchBoxElement.setAttribute( 'aria-expanded', 'false' );
Expand Down

0 comments on commit a5733d4

Please sign in to comment.