Skip to content

Conversation

@gcamacho079
Copy link
Contributor

@gcamacho079 gcamacho079 commented Sep 17, 2025

Description

The fix addresses an issue where autosuggest options would disappear when clicking on them by:

  1. Adding tabindex="-1" to the autosuggest container to allow click events to bubble properly
  2. Updating the onBlur handler to only clear filtered options when focus moves outside the entire autosuggest container, rather than clearing on any focus change

This prevents the options list from disappearing when users interact with suggestion items while maintaining proper cleanup when focus moves to unrelated elements.

Thanks for identifying this and reviewing @i-just!

@gcamacho079 gcamacho079 requested a review from i-just September 17, 2025 13:56
@gcamacho079 gcamacho079 marked this pull request as ready for review September 17, 2025 14:02
Co-authored-by: Iwona Just <iwona@pixelandtonic.com>
@brandonkelly brandonkelly merged commit 3846de2 into 5.x Sep 30, 2025
3 checks passed
@brandonkelly brandonkelly deleted the fix/skip-link-autosuggest-issue branch September 30, 2025 01:08
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.

4 participants