HomePhabricator

Fix blur and sort behavior for autocomplete

Description

Fix blur and sort behavior for autocomplete

Summary:
Ref T10163.

  • If you click a result, we get a blur before your click hits, and deactivate before the click can work. Instead, wait before responding to blur.
  • Use the standard sort handler which puts unixnames over human names. Also use the standard filter which deals with disabled users not matching unless they're the only match.

Test Plan:

  • Clicked a result, got a replacement.
  • Named myself "dog dog", typed "@dog", user "@dog" was now first match despite me being "@admin".
  • Used normal typeaheads to make sure I didn't break sort handler.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10163

Differential Revision: https://secure.phabricator.com/D15031

Details

Provenance
epriestleyAuthored on Jan 15 2016, 5:30 PM
epriestleyPushed on Jan 15 2016, 5:33 PM
Reviewer
chad
Differential Revision
D15031: Fix blur and sort behavior for autocomplete
Parents
rP77447fc94583: Add a motivational profile menu panel
Branches
Unknown
Tags
Unknown
Tasks
T10163: Remarkup Autocomplete Errata
Build Status
Buildable 10144
Build 12305: Run Core Tests