Homec4science

Better fix for autocomplete blur (select on mousedown instead of delaying blur)

Authored by epriestley <git@epriestley.com> on Jan 15 2016, 18:38.

Description

Better fix for autocomplete blur (select on mousedown instead of delaying blur)

Summary: Ref T10163. I would still sometimes not get a replacement after clicking with the delayed blur. This seems to fix the issue more consistently: instead of listening for a click event (which fires after the blur), listen for a mousedown event (which fires before the blur).

Test Plan: Observed consistent selection via mouse locally.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10163

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

Details

Committed
epriestley <git@epriestley.com>Jan 15 2016, 18:47
Pushed
aubortJan 31 2017, 17:16
Parents
rPH3c19004f9f41: Fix blur and sort behavior for autocomplete
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH7f19216e4499: Better fix for autocomplete blur (select on mousedown instead of delaying blur) (authored by epriestley <git@epriestley.com>).Jan 15 2016, 18:47