Skip to content

Commit f38b144

Browse files
authored
Don't force grab focus on regeneration. Fix zenoamaro#495 (zenoamaro#594)
1 parent 0a805d2 commit f38b144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ class ReactQuill extends React.Component<ReactQuillProps, ReactQuillState> {
284284
delete this.regenerationSnapshot;
285285
this.instantiateEditor();
286286
editor.setContents(delta);
287+
// NOTE: The editor will also set focus iff selection is non-null.
287288
if (selection) editor.setSelection(selection);
288-
editor.focus();
289289
}
290290
}
291291

0 commit comments

Comments
 (0)