fix(mail): remove onpointerrawupdate event handler from HTML messages

Fixes #4979
This commit is contained in:
Francis Lachapelle
2020-03-06 12:14:46 -05:00
parent 2601ad4563
commit d1dbceb407
3 changed files with 10 additions and 2 deletions
@@ -58,7 +58,14 @@
elem.on('keyup', AutoGrowTextArea);
elem.on('paste', AutoGrowTextArea);
AutoGrowTextArea();
var deregisterWatcher = scope.$watch(function() {
return elem[0].value;
}, function(content) {
if (content) {
AutoGrowTextArea();
deregisterWatcher(); // watch once
}
});
}
};
}