Skip to content

[Autocomplete] Add a forceClearIcon prop to Autocomplete like forcePopupIcon #45068

Closed as not planned
@ej-shafran

Description

@ej-shafran

Summary

I'm using the wonderful Autocomplete component, however, I'm rendering a list of autocompletes and want the clearIcon to delete the item from the list if pressed when the field is empty. I can't seem to find a way to make the clearIcon appear without a value, and from looking at the source code it seems that this does not exist as a concept. I would love to see this prop, since right now I have to manually reconstruct the endAdornment passed by renderInput...

Examples

No response

Motivation

No response

Search keywords: clearIcon,forcePopupIcon,Autocomplete

Metadata

Metadata

Assignees

Labels

component: autocompleteThis is the name of the generic UI component, not the React module!

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions