diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 8e846ebe635..517bc881e53 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -2801,6 +2801,11 @@ const Many2oneUserValueWidget = SelectUserValueWidget.extend({ return; } if (widget && widget === this.createButton) { + // When the create button is clicked, make sure the text + // value is restored from the actual input element because + // it might have been removed when hovering existing tags. + // TODO review this, there is probably better to do + this.createInput._value = this.createInput.el.querySelector('input').value; if (!this.createInput._value) { ev.stopPropagation(); }