documentcloud/visualsearch — Issue #39: Tab Completion Maintains Previous Text Input
Author: jlank
Created: 2011-12-15 15:01:11+00:00
State: open

Context: Fresh deploy of visual search with example facets and completion terms.

Scenario:
1. Tab complete "country" facet,
2. Type in USA,
3. Tab again to move to the next input fragment
4. Backspace, Delete USA up until country facet
5. Tab 2 times, USA comes back

It seems like the "USA" term is being temporarily stored and reconstituted on double tab after deletion. Shouldn't the behavior be more along the lines if you just typed country and tabbed twice, no term is inserted, and you move to the next facet fragment? Maybe this behavior would be different if country had a set of canned countries to choose from, and tabbing through would chose your last selected or top term in that list? For facets that don't have a preset list of values to choose from, tab completing on an ephemeral, user defined term that was just deleted seems counter-intuitive (to me at least)... thoughts?

p.s. I want to contribute so let me know if this behavior is by design or to the contrary, I can work on this