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

Fixes #4979
pull/270/head
Francis Lachapelle 2020-03-06 12:14:46 -05:00
parent 2601ad4563
commit d1dbceb407
3 changed files with 10 additions and 2 deletions

View File

@ -541,6 +541,7 @@ _xmlCharsetForCharset (NSString *charset)
[name isEqualToString: @"onmouseout"] ||
[name isEqualToString: @"onmouseup"] ||
[name isEqualToString: @"onmouseover"] ||
[name isEqualToString: @"onpointerrawupdate"] ||
// Keyboard Events
[name isEqualToString: @"onkeydown"] ||

View File

@ -274,7 +274,7 @@
md-autofocus="::!editor.isNew()"
md-no-resize="md-no-resize"
md-no-autogrow="md-no-autogrow"
sg-autogrow="!isPopup"
sg-autogrow="true"
md-detect-hidden="md-detect-hidden" />
</md-input-container>
</md-dialog-content>

View File

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