microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.28k stars 595 forks source link

feat: picker max suggestions #6818

Closed scomea closed 4 months ago

scomea commented 1 year ago

📖 Description

While building a picker based ui with larger collections of suggestions I found that I needed to truncate the number of suggestions rendered in the UI "as you type". Makes sense for picker to enables this internally. This change adds a "max-suggestions" attribute to picker as well as showing a "type for more" message when large suggestion sets are truncated.

image

Also fixed an issue where max selection could be exceeded programmatically.

🎫 Issues

ad hoc

✅ Checklist

General

Component-specific

janechu commented 4 months ago

@scomea circling back to this, is it still needed?

janechu commented 4 months ago

I'm going to close this as we are avoiding features while we reconcile open PRs with #6951.