[FIX] web_editor: restore popover edit link focusing on URL
Reproduction: 1. Install website 2. Change to edit mode and click a link on the main page, for example, “contact us” at the bottom 3. click "Edit link" in the popover Fix: use the variable `shouldFocusUrl` for link tool props update task-3514360 closes odoo/odoo#137246 X-original-commit: af035687c57f8b34261beff121669ee044d9b7df Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Co-authored-by: Rodolpho Lima <rcdl@odoo.com>
This commit is contained in:
co-authored by
Rodolpho Lima
parent
d5bc5eb8ec
commit
80b3edea0c
@@ -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') &&
|
||||
|
||||
Reference in New Issue
Block a user