diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index 50f229d88e4..815b0d603b2 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -186,7 +186,7 @@ export class HtmlField extends Component { } updateValue() { const value = this.getEditingValue(); - if (value !== null && value !== this.props.value) { + if (value !== null && value !== (this.props.value || '').toString()) { if (this.props.setDirty) { this.props.setDirty(true); }