fix: Fixed issue where autocapitalization wouldn't work on iOS for newly created Super notes

This commit is contained in:
Aman Harwara
2023-07-29 22:37:12 +05:30
parent d3dfa73fa0
commit c42afa45b4
3 changed files with 35 additions and 8 deletions

View File

@@ -130,12 +130,6 @@ export const PlainEditor = forwardRef<PlainEditorInterface, Props>(
}
}, [])
useEffect(() => {
if (controller.isTemplateNote && controller.templateNoteOptions?.autofocusBehavior === 'editor') {
focusEditor()
}
}, [controller, focusEditor])
useEffect(() => {
const shouldFocus = controller.isTemplateNote && controller.templateNoteOptions?.autofocusBehavior === 'editor'