From d59de4cb8b794e7cfb48a3ecd559d25d13da7b06 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:35:47 +0200 Subject: [PATCH] Hotfix/3.6.8 (#422) * fix: do not set state in SNTextView content change event * fix: typing quickly on search bar causes issues with input Co-authored-by: Antonella Sgarlatta --- src/screens/Compose/Compose.tsx | 1 - src/screens/Notes/NoteList.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/screens/Compose/Compose.tsx b/src/screens/Compose/Compose.tsx index b1a3b9ee..532bf684 100644 --- a/src/screens/Compose/Compose.tsx +++ b/src/screens/Compose/Compose.tsx @@ -402,7 +402,6 @@ export class Compose extends React.Component<{}, State> { }; onContentChange = (text: string) => { - this.setState({ text }); if (Platform.OS === 'android' && this.note?.locked) { this.context?.alertService?.alert( 'This note is locked. Please unlock this note to make changes.' diff --git a/src/screens/Notes/NoteList.tsx b/src/screens/Notes/NoteList.tsx index 074920e5..bf69c6cd 100644 --- a/src/screens/Notes/NoteList.tsx +++ b/src/screens/Notes/NoteList.tsx @@ -209,7 +209,6 @@ export const NoteList = (props: Props) => { ref={iosSearchBarInputRef} keyboardAppearance={themeService?.keyboardColorForActiveTheme()} placeholder="Search" - text={searchText} hideBackground /** * keyboardColorForActiveTheme returns the same value as apperance