Autodesk / Autodesk/hig

Dropdown - Enable typing into field

Open
#1,073 2 comments 0 reactions 1 assignee Claimed by @arirusso View on GitHub
community feature request
Dominant language
JavaScript
Stars
193
Forks
112
PR merge metrics
No merged PRs in 30d

Description

As a user
I can type to filter items in a Dropdown
so I can find an item in a long list

---

*Dev notes*

No need to implement the searching algorithm.
Just enable typing into the input and add event listeners. Client will handle reducing the list.

Add the following props to Dropdown:
```
/**
* Enables user to focus and type into the dropdown text field
*/
hasTextEntry: PropTypes.bool,
/**
* Called when user puts focus on the dropdown text field
*/
onTextEntryFocus: PropTypes.func,
/**
* Called when user puts focus away from the dropdown text field
*/
onTextEntryBlur: PropTypes.func,
/**
* Called when user types into the dropdown text field
*/
onTextEntryChange: PropTypes.func,
```

----

_Requested by Punit from Fusion Production_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.