Closed Bug 790009 Opened 12 years ago Closed 12 years ago

Clear search field on new search

Categories

(Marketplace Graveyard :: Consumer Pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2012-09-20

People

(Reporter: msandberg, Unassigned)

Details

(Whiteboard: [mushinits])

Steps to reproduce:
1. Go to https://marketplace.mozilla.org/
2. Search for "games"
3. Go back to homescreen.
4. Try to search again - last search term is shown in search field. 

Expected behavior:
Search field is cleared on new search. In the future we might add in search history in autocomplete.
Also related, the search box also used to be focused when you would click the magnifying glass. Not sure when that changed.
Whiteboard: [mushinits]
If you give focus to the search box when the magnifying glass is clicked, it won't show the placeholder text. Are you ok with that?
(In reply to Matt Basta [:basta] from comment #2)
> If you give focus to the search box when the magnifying glass is clicked, it
> won't show the placeholder text. Are you ok with that?

No, this is beyond placeholder text. This is about new searches.
I mean if the user presses the magnifying glass, it won't say "Search" in the search box because it has focus and focus clears that placeholder text out.

Presumably, we could use different placeholder code that shows the placeholder text until the user types something, but I'd imagine that would require some significant changes (enough to call for its own bug).

If you're cool with the search box not saying "Search" before the user types, though, this is just a one-line addition.
Basta, are you following the STR in comment 0? You seem to be talking about something different.
Yeah, that's fixed. What I'm talking about is what you mentioned in comment 1.
(In reply to Matt Basta [:basta] from comment #4)
> I mean if the user presses the magnifying glass, it won't say "Search" in
> the search box because it has focus and focus clears that placeholder text
> out.
 
That's fine. We don't need the placeholder text when a user is starting to search. 

> If you're cool with the search box not saying "Search" before the user
> types, though, this is just a one-line addition.

Go for it - gotta love those one-liners.
Merged:

https://github.com/mozilla/zamboni/commit/0397bffc02d47e32839a7fd00845a7a836f42df1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2012-09-20
Verified as fixed : http://screencast.com/t/LadNt8zMKa
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.