Skip to content

Conversation

@adiancodes
Copy link

  • Replaced window.onload with DOMContentLoaded for better event timing and performance

  • Added Escape key support to close the suggestion dropdown

if (event.key === 'Escape') {
    this.clearSearchDropdown();
    this.searchInput.blur();
}

This commit updates the autocomplete search and region filtering logic with better performance and accessibility support.

- Replaced window.onload with DOMContentLoaded for better event timing and performance

- Added Escape key support to close the suggestion dropdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant