diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 61a60b2b0c5..16304f95d01 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -975,12 +975,10 @@ }, clean_for_save: function () { this._super(); - $(".carousel").find(".item").removeClass("next prev left right active"); + this.$target.find(".item").removeClass("next prev left right active"); + this.$target.find(".item:first").addClass("active"); this.$indicators.find('li').removeClass('active'); this.$indicators.find('li:first').addClass('active'); - if(!this.$target.find(".item.active").length) { - this.$target.find(".item:first").addClass("active"); - } }, start : function () { var self = this;