-
Notifications
You must be signed in to change notification settings - Fork 30
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
[bug] When a TextInput is inside a Portal, cursor jumps around on edit #58
Comments
i forgot which issue it was acutally mentioned, but the root cause is I cannot use states directly in the same component wrapped in a portal. it has to be wrapped inside another component to please this cursor flickering problem. however a dialog does need access to the textinput value and this will be resolved via refs, similar to how i was too lazy to lift the state up for addPlaylistButton. |
react-native-paper's input as ref does not seem to expose value, this is logging the ref.current object: so we cant exactly use uncontrolled props here |
why cant i just wrap the entire dialog into another component? using ref sounds unnecessarily convoluted and stupid |
exactly this issue. doesnt just happen to react-native-paper's portal but other kinds of portals too like react-native-portal.
The text was updated successfully, but these errors were encountered: