Skip to content

Commit

Permalink
Don't force grab focus on regeneration. Fix zenoamaro#495 (zenoamaro#594
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rockwotj authored Apr 15, 2020
1 parent 0a805d2 commit f38b144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ class ReactQuill extends React.Component<ReactQuillProps, ReactQuillState> {
delete this.regenerationSnapshot;
this.instantiateEditor();
editor.setContents(delta);
// NOTE: The editor will also set focus iff selection is non-null.
if (selection) editor.setSelection(selection);
editor.focus();
}
}

Expand Down

0 comments on commit f38b144

Please sign in to comment.