Page MenuHomePhabricator

Dismiss search suggestions when clicking outside of focus areas after clicking inside the suggestion area
Open, Needs TriagePublic

Description

MW search suggestions appear when entering some text in the search input in the skin, but when you want to dismiss them after you have clicked inside the suggestion area but not in a manner that takes you to the next page (i.e. mouse up outside of suggestions) the suggestion are stuck even if you click out side of the suggestions. Clicking outside of search focus areas does not force them to hide.

Steps to reproduce:

  • go to en.wikipedia.org
  • type math in the upper right corner search box
  • click on the first result, but do not release the mouse
  • move the mouse outside the suggestions area and release

The suggestions list now will not go away unless you click one of the suggestions!

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
TJones added a subscriber: TJones.

This isn't a search platform issue, though to a user it is obviously a search issue. We provide the API used to populate the suggestion widget, but not the widget itself.

I've moved it to our watching column, and added OOUI, which I think is the project that would be able to change the behavior of the upper corner search box—if not, they should know who is.

I'm also going to add more explicit steps to reproduce, since it took me a little while to figure it out.