mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 22:42:40 +08:00
Make text in text inputs selectable
Differential Revision: D2535762 fb-gh-sync-id: 49eaf403195fd210a87fe4babf266ee4b29b7ae8
This commit is contained in:
committed by
facebook-github-bot-7
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user