You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After further investigation it looks like this is partly caused by wrapping $scope.$apply in $timeout. It is my understanding that Angular already wraps $timeout in an $apply call, but perhaps there was a good reason for doing this?
var updateModel = function updateModel(value) {
// $timeout to avoid $digest collision
$timeout(function () {
scope.$apply(function () {
ngModel.$setViewValue(value);
});
});
},
After changing to:
var updateModel = function updateModel(value) {
// $timeout to avoid $digest collision
$timeout(function () {
ngModel.$setViewValue(value);
});
},
We no longer have the "dirty" issue and everything continues to work as expected.
We're tracking the dirty state of the form. When redactor is initialized the
$dirty
flag is set to true. This should be reset after initialization.The text was updated successfully, but these errors were encountered: