zendeskgarden / react-components

:seedling: garden React components
https://zendeskgarden.github.io/react-components/
Apache License 2.0
1.1k stars 89 forks source link

ComboBox: Add helpers to clear all options and add all options #1912

Closed willshen8 closed 2 months ago

willshen8 commented 2 months ago

Expectations

This is a feature request which would have an extra option/s at the bottom of the comboBox.

Please let me know if this is worthwhile adding in as a bonus feature. If not, feel free to dismiss it.

image

Reality

Steps to Reproduce

N/A

Fine Print

jzempel commented 2 months ago

Thanks @willshen8, but due to the complexity of Combobox implementations (autocomplete with dynamic <Option> loading and nested <Option> swaps, for example) there is no way to reliably add this as a component feature. It is left as an excercise for the consumer to setup a controlled combobox with specialized handlers to achieve the desired functionality.