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 b8048cd8641..e2f5067668f 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -249,7 +249,7 @@ const UserValueWidget = Widget.extend({ this._methodsParams.optionsPossibleValues = {}; for (const key in this.el.dataset) { - const dataValue = this.el.dataset[key]; + const dataValue = this.el.dataset[key].trim(); if (validMethodNames.includes(key)) { this._methodsNames.push(key);