Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard against empty search results #984

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Guard against empty search results #984

merged 1 commit into from
Oct 30, 2023

Conversation

jleedev
Copy link
Member

@jleedev jleedev commented Oct 28, 2023

When pressing Enter in the search box, if there are no results (whether still loading or if there are no results) then unwanted things happen: The form submits and the page navigates, or the text box is sadly cleared without any other feedback (and an exception is thrown).

If there are no results, do nothing when Enter is pressed (leaving the typed entry intact).

Copy link
Member

@ZeLonewolf ZeLonewolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jleedev jleedev merged commit 42ec65a into main Oct 30, 2023
6 checks passed
@jleedev jleedev deleted the jleedev/search-fix branch October 30, 2023 01:06
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.

2 participants