Skip to content

Adding api to access Select through data attributes #10401

@noah-potter

Description

@noah-potter

https://github.com/mui-org/material-ui/blob/bce6ebd43871db4ff1d94ce1a3c10ffd5d07588c/src/Select/SelectInput.js#L277

Currently, there's no api to add a data attribute directly to the element responsible for clicking a Select.
There's a data-mui-test prop that helps during mui tests, but anyone using mui can't add their own data attribute.

Is there an alternative I missed or should I submit a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: selectChanges related to the select.type: new featureExpand the scope of the product to solve a new problem.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions