diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 9619bb99343..4bde481edea 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -1345,8 +1345,8 @@ export class Wysiwyg extends Component { } }; } - // update the shouldFocusUrl prop to focus on url when double click - this.state.linkToolProps.shouldFocusUrl = options.shouldFocusUrl; + // update the shouldFocusUrl prop to focus on url when double click and click edit link + this.state.linkToolProps.shouldFocusUrl = shouldFocusUrl; const _onClick = ev => { if ( !ev.target.closest('#create-link') &&