Skip to content

Commit

Permalink
Merge pull request #5 from DigiExam/fix-eventbindsafterdestroy-3.0.6
Browse files Browse the repository at this point in the history
Dirty workaround for scope not getting cleaned up and generating errors (froala#218)
  • Loading branch information
robinwassen authored Dec 5, 2019
2 parents 0143573 + 538ed12 commit 944b265
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/angular-froala.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
};

ctrl.initListeners = function() {
if (!element) {
return;
}

if (ctrl.options.immediateAngularModelUpdate) {
ctrl.froalaEditor.events.on('keyup', function() {
scope.$evalAsync(ctrl.updateModelView);
Expand Down

0 comments on commit 944b265

Please sign in to comment.