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 <antsgar@gmail.com>
This commit is contained in:
Baptiste Grob
2021-04-30 18:35:47 +02:00
committed by GitHub
parent 71175ab593
commit d59de4cb8b
2 changed files with 0 additions and 2 deletions

View File

@@ -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.'

View File

@@ -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