diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index d43f46fc37e..a0a14aa1e9c 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -3054,15 +3054,6 @@ options.registry.WebsiteAnimate = options.Class.extend({ this.$target.toggleClass('o_animate_preview o_animate', !!widgetValue); } }, - /** - * @override - */ - async _computeWidgetVisibility(widgetName, params) { - if (widgetName === 'animation_launch_opt') { - return !this.$target[0].closest('.dropdown'); - } - return this._super(...arguments); - }, //-------------------------------------------------------------------------- // Private @@ -3091,6 +3082,9 @@ options.registry.WebsiteAnimate = options.Class.extend({ if (widgetName === 'no_animation_opt') { return !this.isAnimatedText; } + if (widgetName === 'animation_launch_opt') { + return !this.$target[0].closest('.dropdown'); + } return this._super(...arguments); }, });