-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Open
Labels
on holdThere is a blocker, we need to wait.There is a blocker, we need to wait.package: joy-uiSpecific to Joy UI.Specific to Joy UI.scope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Steps to reproduce
- Open the Joy UI Autocomplete docs: https://mui.com/joy-ui/react-autocomplete/#multiple
- Add a
placeholderprop to the multiple Autocomplete, e.g.:
<Autocomplete
multiple
placeholder="Select items"
options={['Apple', 'Banana', 'Cherry']}
/>- Select one or more values
Current behavior
The placeholder text remains visible alongside the selected chips. The placeholder is passed unconditionally to the internal <input> element's additionalProps:
Since the input's value is always empty in multiple mode (selected values render as chips, not input text), the HTML placeholder never clears.
Expected behavior
The placeholder should be hidden when one or more values are selected, matching the behavior of Joy UI's Select component which was fixed in #39806.
Context
The fix in #39806 addressed this for Select but was not applied to Autocomplete.
Your environment
System:
OS: macOS 26.2
Binaries:
Node: 24.11.0
npm: 11.6.1
Browsers:
Chrome: 144.0.7559.133
Safari: 26.2
npmPackages:
@mui/joy: 5.0.0-beta.52
@emotion/react: 11.14.0
@emotion/styled: 11.14.1
react: 17.0.2
Order ID: N/A (open source usage)
Search keywords: joy autocomplete placeholder multiple chips
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
on holdThere is a blocker, we need to wait.There is a blocker, we need to wait.package: joy-uiSpecific to Joy UI.Specific to Joy UI.scope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.It doesn't behave as expected.