diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 6f2e7ed10d3..acb93cb83cd 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -2745,7 +2745,7 @@ export class Wysiwyg extends Component { } const closestDialog = e.target.closest('.o_dialog, .o_web_editor_dialog'); if ( - e.target.closest('.oe-toolbar,.oe-powerbox-wrapper,.o_we_crop_buttons') || + e.target.closest('.oe-toolbar,.oe-powerbox-wrapper,.o_we_crop_widget') || (closestDialog && closestDialog.querySelector('.o_select_media_dialog, .o_link_dialog')) ) { this._shouldDelayBlur = true;