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

Fixes #4979
This commit is contained in:
Francis Lachapelle committed 2020-03-06 12:14:46 -05:00
1 parent 2601ad4563
commit d1dbceb407
3 files changed
+10 -2

No files matched your search

@@ -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
}
});
}
};
}