Skip to content

Commit

Permalink
Cursor in paragraph text fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
egorklimov committed Jul 24, 2018
1 parent 8b521f8 commit 3757129
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -1199,7 +1199,9 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat
bodyEl.finish();

// scroll to scrollTargetPos
bodyEl.scrollTo(scrollTargetPos, {axis: 'y', interrupt: true, duration: 100});
if (scrollTargetPos) {
bodyEl.scrollTo(scrollTargetPos, {axis: 'y', interrupt: true, duration: 100});
}
};

$scope.getEditorValue = function() {
Expand Down

0 comments on commit 3757129

Please sign in to comment.