Skip to content

Commit

Permalink
prevent scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 10, 2018
1 parent 1c624dc commit 101c4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Syntax extends Module {
});
select.addEventListener('change', () => {
blot.format(SyntaxCodeBlock.blotName, select.value);
this.quill.focus();
this.quill.root.focus(); // Prevent scrolling
this.highlight(blot, true);
});
if (blot.uiNode == null) {
Expand Down

0 comments on commit 101c4d0

Please sign in to comment.