Skip to content

Commit

Permalink
Fix selection bug when toggling between side-by-side (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Cossick committed Jun 8, 2016
1 parent c949cad commit b4d4e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/simplemde.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,9 @@ function toggleSideBySide(editor) {
} else {
cm.off("update", cm.sideBySideRenderingFunction);
}

// Refresh to fix selection being off (#309)
cm.refresh();
}


Expand Down Expand Up @@ -2015,4 +2018,4 @@ SimpleMDE.prototype.toTextArea = function() {
}
};

module.exports = SimpleMDE;
module.exports = SimpleMDE;

0 comments on commit b4d4e89

Please sign in to comment.