mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Fix TextInput Spannable flags
Summary: The TextInput spannables are being set wrong by Nodes. Consequently, when you hit space after a word, anything you type is highlighted, though it shouldn't be. Differential Revision: D3507516
This commit is contained in:
@@ -50,7 +50,11 @@ import com.facebook.react.uimanager.annotations.ReactProp;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void performApplySpans(SpannableStringBuilder builder, int begin, int end) {
|
||||
protected void performApplySpans(
|
||||
SpannableStringBuilder builder,
|
||||
int begin,
|
||||
int end,
|
||||
boolean isEditable) {
|
||||
mInlineImageSpan.freeze();
|
||||
builder.setSpan(
|
||||
mInlineImageSpan,
|
||||
|
||||
Reference in New Issue
Block a user