modus-web-components icon indicating copy to clipboard operation
modus-web-components copied to clipboard

Autocomplete Behavior

Open enowak1031 opened this issue 1 year ago • 4 comments

https://trimble-arch.aha.io/ideas/ideas/MOD-I-35

1.) New flavor of autocomplete that shows all items when opened (rather than only showing items based on user input). I believe this needs to be a flavor only for the use cases when the list within the autocomplete is way too long. a.) it would confuse the user why everything is showing without knowing any context, and b,) it could take forever to load a potenially irrelevant list.

2.) Scroll the list to the selected item (to assure user of their selection): once the user selects something from the autocomplete list, and reopens the autocomplete, they should see their selection within the context of the list. The already selected item item shows with a checkmark on the right and is the second one from the bottom of the list.

This is going to be addressed in a separate issue: 3.) If this is a multliselect autocomplete: show chips ABOVE the input field (not inside). When chips are created, and the field is reopened, the first selection in alphabetical order should be visible as the second from the bottom (unless it's the first one in the list or the last one in the list).

https://github.com/trimble-oss/modus-web-components/issues/2446

enowak1031 avatar Mar 13 '24 00:03 enowak1031

@cjwinsor or @enowak1031 when will this be approved for engineering?

apaddock avatar Mar 27 '24 17:03 apaddock

@apaddock This is approved and ready to be worked on! I broke the story up to exclude #3 on the list. But you can break it up further, if need be.

enowak1031 avatar Apr 16 '24 18:04 enowak1031

From discussion: user focuses on autocomplete input, list opens of available items user starts typing, list filters user either chooses filtered item OR user backspaces and the list unfilters, showing full list when no characters are typed user focuses on autocomplete with selected item, full list opens again showing the selected item selected The autocomplete clears when it loses focus if a value wasn't selected.

cjwinsor avatar Apr 17 '24 14:04 cjwinsor

@apaddock Discussed with team, and these requirements are approved to be implemented.

cjwinsor avatar Apr 19 '24 13:04 cjwinsor