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 15c49a68e56..68acfdba9b4 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -2249,6 +2249,9 @@ const ListUserValueWidget = UserValueWidget.extend({ } this._addItemToTable(undefined, this.el.dataset.defaultValue, recordData); this._notifyCurrentState(); + // Scroll to the new list element. + this.el.querySelector('tr:last-child') + .scrollIntoView({behavior: 'smooth', block: 'nearest'}); }, /** * @private