Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] TimeField slotProps startAdornment is missing #15007

Closed
campsafari opened this issue Oct 17, 2024 · 2 comments
Closed

[pickers] TimeField slotProps startAdornment is missing #15007

campsafari opened this issue Oct 17, 2024 · 2 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists enhancement This is not a bug, nor a new feature

Comments

@campsafari
Copy link

campsafari commented Oct 17, 2024

Steps to reproduce

Link to live example: (required)
https://stackblitz.com/edit/vitejs-vite-mjdgy7?file=src%2FApp.tsx,src%2Fmain.tsx,package.json&terminal=dev
Steps:

  1. Open the playground
  2. Try to set startAdornment via slotProps.input

Current behavior

Hence "InputProps" are marked as deprecated the recommended way of using slotProps.input does not support the "startAdornment" prop.

Expected behavior

slotProps.input should support "startAdornment"

<TimeField slotProps={{ input: { startAdornment: <AddAlarmIcon /> } }} />

Context

I am trying to set the startAdornment prop on a TimeField via slotProps.

Your environment

npx @mui/envinfo ``` System: OS: Linux 5.0 undefined Binaries: Node: 18.20.3 - /usr/local/bin/node npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm Browsers: Chrome: Not Found npmPackages: @emotion/react: ^11.13.3 => 11.13.3 @emotion/styled: ^11.13.0 => 11.13.0 @mui/core-downloads-tracker: 6.1.4 @mui/icons-material: ^6.1.4 => 6.1.4 @mui/material: ^6.1.4 => 6.1.4 @mui/private-theming: 6.1.4 @mui/styled-engine: 6.1.4 @mui/system: 6.1.4 @mui/types: 7.2.18 @mui/utils: 6.1.4 @mui/x-date-pickers: ^7.20.0 => 7.20.0 @mui/x-internals: 7.20.0 @types/react: ^18.3.11 => 18.3.11 react: ^18.3.1 => 18.3.1 react-dom: ^18.3.1 => 18.3.1 typescript: ^5.5.3 => 5.6.3 ```

Search keywords: TimeField

@campsafari campsafari added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 17, 2024
@github-actions github-actions bot added the component: pickers This is the name of the generic UI component, not the React module! label Oct 17, 2024
@flaviendelangle
Copy link
Member

Duplicates #14284 👍

@flaviendelangle flaviendelangle added duplicate This issue or pull request already exists enhancement This is not a bug, nor a new feature and removed bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 21, 2024
@flaviendelangle flaviendelangle changed the title TimeField slotProps startAdornment is missing [pickers] TimeField slotProps startAdornment is missing Oct 21, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@campsafari How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists enhancement This is not a bug, nor a new feature
Projects
None yet
Development

No branches or pull requests

2 participants