mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 08:30:34 +00:00
Make text in text inputs selectable
Differential Revision: D2535762 fb-gh-sync-id: 49eaf403195fd210a87fe4babf266ee4b29b7ae8
This commit is contained in:
parent
42e9189b77
commit
c456accbed
@ -105,6 +105,11 @@ public class ReactEditText extends EditText {
|
||||
|
||||
@Override
|
||||
public boolean requestFocus(int direction, Rect previouslyFocusedRect) {
|
||||
// Always return true if we are already focused. This is used by android in certain places,
|
||||
// such as text selection.
|
||||
if (isFocused()) {
|
||||
return true;
|
||||
}
|
||||
if (!mIsJSSettingFocus) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user