Skip to content

Add clear button to select  #27141

@dashty94

Description

@dashty94

How to add a clear button to the Select component?

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Example code

const options = [{name: 'a', value: '1'}, {name: 'b', value: '2'}]

<Select> {options.map((option, index) => <ListItem value={option.value} key={index} > <ListItemText primary={option.name} /> </ListItem> )} </Select>

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists.scope: selectChanges related to the select.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions