Skip to content

Commit

Permalink
fix textinput cursor jump to right when input null
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed May 28, 2020
1 parent 5cde6c5 commit 20a9473
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ public void setAllowFontScaling(ReactEditText view, boolean allowFontScaling) {

@ReactProp(name = "placeholder")
public void setPlaceholder(ReactEditText view, @Nullable String placeholder) {
view.setHint(placeholder);
String text = placeholder == null ? "" : placeholder;
view.setHint(text);
}

@ReactProp(name = "placeholderTextColor", customType = "Color")
Expand Down

0 comments on commit 20a9473

Please sign in to comment.