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

multiline and value on the same TextArea causes input letters to be continuously added and deleted #5809

Open
ADearingIntlFarming opened this issue May 30, 2024 · 2 comments

Comments

@ADearingIntlFarming
Copy link

Description

I have a <TextArea> component with both value={myVariable} and multiline. When both are present, and I type a character into that input box, the character is continuously added and deleted in a loop. If I remove either input, the behavior works as expected, which is every character I type is added once

CodeSandbox/Snack link

https://snack.expo.dev/Q5QFYFkPBBHXotrEDeVN_

Steps to reproduce

  1. Set up a component like this:

...

const [myVariable, setMyVariable] = useState('');

...

<TextArea multiline defaultValue={myVariable} onChangeText={setMyVariable} autoCompleteType={undefined} /> 2. Type a letter into that input ### NativeBase Version 3.4.28 ### Platform - [ ] Android - [ ] CRA - [ ] Expo - [X] iOS - [ ] Next ### Other Platform _No response_ ### Additional Information Could not get the issue to repro in Snack. Using VSCode, iOS 17.4, native-base 3.4.28
@ADearingIntlFarming
Copy link
Author

@blakecallens

@shashmit
Copy link

I'm having the same issue and it is irritating

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

No branches or pull requests

2 participants