From d8e83c0ca37cc71ea7eb965b4944879abee261cf Mon Sep 17 00:00:00 2001 From: Marcelo Antunes Date: Thu, 8 Aug 2024 13:46:46 -0300 Subject: [PATCH] Aplica setSubmitBehavior Thread: https://github.com/wix-incubator/react-native-autogrow-textinput/issues/85#issuecomment-1422534378 --- .../java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java b/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java index 07c76d6..b2d1549 100644 --- a/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java +++ b/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java @@ -52,7 +52,7 @@ public void execute (NativeViewHierarchyManager nvhm) { if (param.hasKey("maxHeight") && !param.isNull("maxHeight")) { mMaxHeight = dpToPx(param.getDouble("maxHeight")); } - editText.setBlurOnSubmit(false); + editText.setSubmitBehavior("submit"); editText.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) {