Fix search box hover behavior replacing input text #4026
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR addresses an issue where hovering over options in the search box replaces the search query with the block's name, even if the option hasn’t been selected yet. This unintended behavior disrupts the user’s search input and creates a frustrating experience.
The fix ensures that the search query remains intact until an option is explicitly selected. It refines the search box functionality for smoother user interaction and prevents unwanted input replacement while browsing search results.
Changes:
Adjusted the focus event behavior in the search function to prevent the hover action from replacing the input field prematurely.
Screen Recording:
Screen.Recording.2024-10-03.133844.mp4
Fixes:
Closes #4024
Additional Notes:
Tested thoroughly to ensure that the search functionality behaves as expected. Please review and merge if it aligns with the expected behavior.