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

[Joy][TextField] not have 'readOnly' props #34525

Closed
2 tasks done
wangyg115 opened this issue Sep 30, 2022 · 3 comments
Closed
2 tasks done

[Joy][TextField] not have 'readOnly' props #34525

wangyg115 opened this issue Sep 30, 2022 · 3 comments
Assignees
Labels
component: text field This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy

Comments

@wangyg115
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:

Current behavior 😯

Joy TextField has no readOnly prop in TextFieldProps type declaration .

Expected behavior 🤔

No response

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo
 npmPackages:
    @emotion/react: ^11.10.4 => 11.10.4
    @emotion/styled: ^11.10.4 => 11.10.4
    @mui/base:  5.0.0-alpha.92
    @mui/core-downloads-tracker:  5.10.6
    @mui/icons-material: latest => 5.8.4
    @mui/joy: * => 5.0.0-alpha.47
    @mui/material:  5.9.3
    @mui/private-theming:  5.10.6
    @mui/styled-engine:  5.10.6
    @mui/system:  5.10.6
    @mui/types:  7.2.0
    @mui/utils:  5.10.6
    @types/react: ^17.0.47 => 17.0.48
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    typescript: ^4.7.4 => 4.7.4
@wangyg115 wangyg115 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 30, 2022
@mnajdova mnajdova added component: text field This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy labels Sep 30, 2022
@kushagra010
Copy link
Contributor

kushagra010 commented Oct 1, 2022

Hey @mnajdova @siriwatknp, can I pick this up ?

@kushagra010
Copy link
Contributor

@wangyg115
Can be handled with:

<TextField
    componentsProps={{ input: { readOnly: true } }}   <-----------------
    label="Solid"
    placeholder="Type in here…"
    variant="solid"
/>

@wangyg115
Copy link
Author

got it, thanks.

@michaldudak michaldudak removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy
Projects
None yet
Development

No branches or pull requests

5 participants