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

isDisabled and isReadonly does not work as I expected #1378

Closed
2 of 6 tasks
arsalannury opened this issue Nov 12, 2023 · 2 comments
Closed
2 of 6 tasks

isDisabled and isReadonly does not work as I expected #1378

arsalannury opened this issue Nov 12, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@arsalannury
Copy link

Description

the input isReadonly and isDisabled does not work and after setting them I still can change their values

CodeSandbox/Snack link

No response

Steps to reproduce

<Input
style={[styles.inputStyle, styleInput]}
variant="outline"
size="md"
isReadOnly={true}
isDisabled={true}
isRequired={required}
width={width ? width : "$full"}
direction="rtl"
>
<InputField
value={inputValue}
onChangeText={setValue}
style={[styles.inputFieldStyle, styleFieldInput]}
direction="rtl"
writingDirection="rtl"
fontFamily="Vazir"
fontSize={fontSize}
sx={{ _input: { fontFamily: "Vaizr" } }}
type={inputType}
/>
<InputSlot pr={"$3"} pl={"$1"}>
{icon}

gluestack-ui Version

1.0.8

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

I tested that on Android, so I don't know about IOS. now I have to control input values with a set value prop which the user can't change this

@arsalannury arsalannury added the bug Something isn't working label Nov 12, 2023
@surajahmed
Copy link
Contributor

@arsalannury Thanks for reporting this. We'll have a look.

@arsalannury
Copy link
Author

thank you. after updating to the latest version, the problem was solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants