Respect autofocus, closes #1923 (#1924)

pull/1926/head v9.4.2
Guillermo Bueno Vargas 10 months ago committed by GitHub
parent 3959c9e554
commit de5c5f801d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      lib/src/widgets/editor/editor.dart

@ -173,7 +173,9 @@ class QuillEditorState extends State<QuillEditor>
void initState() {
super.initState();
widget.configurations.controller.editorFocusNode ??= widget.focusNode;
widget.configurations.controller.editorFocusNode?.requestFocus();
if (configurations.autoFocus) {
widget.configurations.controller.editorFocusNode?.requestFocus();
}
_editorKey = configurations.editorKey ?? GlobalKey<EditorState>();
_selectionGestureDetectorBuilder =
_QuillEditorSelectionGestureDetectorBuilder(

Loading…
Cancel
Save