Skip to content

Commit 1a3c618

Browse files
author
Tomer Ohana
committed
Check $$phase on the root scope
1 parent 4f1b631 commit 1a3c618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinymce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ angular.module('ui.tinymce', [])
1212
var expression, options, tinyInstance,
1313
updateView = function () {
1414
ngModel.$setViewValue(elm.val());
15-
if (!scope.$$phase) {
15+
if (!scope.$root.$$phase) {
1616
scope.$apply();
1717
}
1818
};

0 commit comments

Comments
 (0)