mirror of
https://github.com/status-im/react-native.git
synced 2025-02-28 09:00:55 +00:00
Fix the 'end' value in the onTextInput callback for onscreen keyboard
Summary: public The 'end' value in the onTextInput callback was incorrectly computed. It now is correct. The value of start and end are relative to the entirety of the entire prechange text in the text input. Reviewed By: andreicoman11 Differential Revision: D2815064 fb-gh-sync-id: e9f9c84cc5836042d0ffcccc991df72b725ab994
This commit is contained in:
parent
5a3b272f7e
commit
8ecd352bbf
@ -376,7 +376,7 @@ public class ReactTextInputManager extends
|
||||
newText,
|
||||
oldText,
|
||||
start,
|
||||
count > 0 ? start + count - 1 : start + before));
|
||||
start + before));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user