-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
[material-ui][TextField] id
in InputProps
in TextField is reflected in its HTML input, not parent div.
#42951
Comments
@hiro712 For your use case, set the To make it less confusing, in v6 we introduced slots: use |
id
in InputProps
in TextField is reflected in its HTML input, not parent div.
I used inputProps instead of InputProps and my problem was solved. Thank you very much. |
Thanks for attending this issue @ZeeshanTamboli
Do you know if this is also present when using |
Yes, it does. See this example: CodeSandbox. I attempted to fix it in PR #43084. However, the issue also involves the id explicitly passed through the Input component ( Example: https://github.com/mui/material-ui/blob/next/docs/data/material/customization/color/ColorTool.js#L223-L224, which is what the e2e-website CI detected in #43084. |
Thanks for the reply @ZeeshanTamboli. As you mention:
Because the The |
Steps to reproduce
The above description results in the following DOM, which shows that the inputmode is in the div, not the input. The id described for debugging purposes is in input.
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
System:
OS: macOS 14.5
Binaries:
Node: 18.18.2 - ~/.asdf/installs/nodejs/18.18.2/bin/node
npm: 9.8.1 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: Not Found
Browsers:
Chrome: 126.0.6478.127
Edge: Not Found
Safari: 17.5
npmPackages:
@emotion/react: ^11.11.4 => 11.11.4
@emotion/styled: ^11.11.5 => 11.11.5
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.15.21
@mui/lab: ^5.0.0-alpha.170 => 5.0.0-alpha.170
@mui/material: ^5.15.16 => 5.15.21
@mui/material-nextjs: ^5.15.11 => 5.15.11
@mui/private-theming: 5.15.20
@mui/styled-engine: 5.15.14
@mui/system: ^5.4.1 => 5.15.20
@mui/types: 7.2.14
@mui/utils: 5.15.20
@mui/x-data-grid: ^6.20.0 => 6.20.3
@types/react: ^18.3.3 => 18.3.3
react: ^18 => 18.3.1
react-dom: ^18 => 18.3.1
typescript: ^5.4.5 => 5.5.3
Search keywords: inputMode
The text was updated successfully, but these errors were encountered: