[FIX] web_editor: remove image style when change to an other than image
closes odoo/odoo#37343 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -261,7 +261,7 @@ var FileWidget = SearchableMediaWidget.extend({
|
||||
* @override
|
||||
*/
|
||||
_clear: function () {
|
||||
if (!this.$media.is('img')) {
|
||||
if (this.$media.is('img')) {
|
||||
return;
|
||||
}
|
||||
var allImgClasses = /(^|\s+)((img(\s|$)|img-(?!circle|rounded|thumbnail))[^\s]*)/g;
|
||||
|
||||
Reference in New Issue
Block a user