Addons-frontend: Search query is not trimmed

Created on 14 Nov 2020  路  5Comments  路  Source: mozilla/addons-frontend

Describe the problem and steps to reproduce it:

Case1: Leave the search field blank and press the enter Key.
We get xyz no. of search results.
Case2: Now just enter 1-2 spaces instead of a blank query and then press the enter Key.
Now we get 0 search results.

Case1:
image
Case2:
image

What happened?

The search results of case1 and case2 were different.

What did you expect to happen?

The search results should be the same for case1 and case2.

p5 verified fixed

Most helpful comment

Hi @Sparsh1212, we would accept a patch for this.

@LordReigns, thanks for your interest! Sparsh is going to be working on this issue, but you are welcome to work on one of our other good-first-bugs! Please take a look at our onboarding information, which includes links to our available good-first-bugs. :)

All 5 comments

Can I try to work on this issue?

@caitmuenster If this isn't the expected behaviour, I will like to work on this issue. Please assign this to me.

Hi @Sparsh1212, we would accept a patch for this.

@LordReigns, thanks for your interest! Sparsh is going to be working on this issue, but you are welcome to work on one of our other good-first-bugs! Please take a look at our onboarding information, which includes links to our available good-first-bugs. :)

@caitmuenster @bobsilverberg I have initiated a patch for this. Please assign a mentor for reviewing the pr.

@bobsilverberg
This issue is no longer reproducible on -dev with FF84(Win10).

blank search results

Was this page helpful?
0 / 5 - 0 ratings