mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #287] TextInput Cursor keep reset to starting position when setState, #196
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Taymindis on GitHub (May 2, 2020).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/287
Describe the bug
TextInput Cursor keep reseting to first position when setState on event of changeText,
To Reproduce
Expected behavior
It should be back to the position where it lay
@HassanA14 commented on GitHub (Aug 12, 2024):
I had the same issue. All you have to do is remove
value={this.state.text}from your<TextInput />component. For example: