From 8c6c871721325925c7b34de854e060b22dbb9cdc Mon Sep 17 00:00:00 2001 From: Fabrizio Bertoglio Date: Sat, 29 Jul 2023 15:00:54 +0800 Subject: [PATCH] fix input scroll up --- .../Libraries/Text/TextInput/Multiline/RCTUITextView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m index 037a38276aee86..60bc74d664d758 100644 --- a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m +++ b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m @@ -148,7 +148,9 @@ - (void)setTextAlignment:(NSTextAlignment)textAlignment - (void)setAttributedText:(NSAttributedString *)attributedText { + self.scrollEnabled = false; [super setAttributedText:attributedText]; + self.scrollEnabled = true; [self textDidChange]; }