mui / mui/base-ui

[select] Using render in Select.Icon do not remove the default icon

Open
#4,752 1 comment 0 reactions 0 assignees View on GitHub
component: select has workaround
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Bug report

## Current behavior

When you use a custom icon for `Select.Icon` with `render`, it doesn't remove the default icon.

Image

## Expected behavior

I should remove the default one just like when you use the icon as a children

## Reproducible example

```jsx
} // font icon
/>
```

## Base UI version

1.4.1

## Which browser are you using?

Brave

## Which OS are you using?

Mac OS

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.