carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.63k stars 256 forks source link

Dropdown: typeahead not available #1975

Open theetrain opened 4 weeks ago

theetrain commented 4 weeks ago

Based on discussion: https://github.com/carbon-design-system/carbon-components-svelte/discussions/1974

Problem

When focusing on a Dropdown, typing a value should open the dropdown and focus on the first matching item.

React demo: https://carbondesignsystem.com/components/dropdown/code/ Svelte demo: https://svelte.carbondesignsystem.com/framed/Dropdown/DropdownSlot?theme=white

gealarcon commented 2 weeks ago

The is already a ComboBox component that lets you type and filter items. I don't think this is needed functionality for the Dropdown component