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

Select component's isReadOnly doesn't do anything #8233

Open
1 of 3 tasks
paramtd opened this issue Jan 24, 2024 · 2 comments
Open
1 of 3 tasks

Select component's isReadOnly doesn't do anything #8233

paramtd opened this issue Jan 24, 2024 · 2 comments

Comments

@paramtd
Copy link

paramtd commented Jan 24, 2024

Description

I expected the Select to not be editable when isReadOnly={true}

Link to Reproduction

https://codesandbox.io/p/sandbox/sharp-voice-pc3tn8

Steps to reproduce

  1. Go to src/index.js
  2. Note that Select has isReadOnly property
  3. Click on Select and change it

Chakra UI Version

2.8.2

Browser

Arc

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@DeveloperRaj
Copy link

@paramtd select elements do not support readOnly attribute. You should be using disabled attribute.

@ktpi2000
Copy link

https://chakra-ui.com/docs/components/select/props

The isReadOnly prop seems to be applicable in the Document.

Should I initiate a Pull Request to amend the description?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants