From 790532a97eda5cb13d463c5e4ee6373bcd004bb6 Mon Sep 17 00:00:00 2001 From: Deependra Solanki Date: Mon, 16 Oct 2023 16:00:23 +0530 Subject: [PATCH] [FIX] web_editor: fix link label not getting updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: After clicking one button and then clicking another, the link label didn't update on the link tools. After this commit: The link label now updates when clicking from one button to another. task-3514717 closes odoo/odoo#144954 X-original-commit: 372c86b70b20ee3992e6376d9b6dba3c3a4b78bc Signed-off-by: Geelen Sébastien (sge) --- addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js b/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js index 48074123b2a..c95f79e2dcd 100644 --- a/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js +++ b/addons/web_editor/static/src/js/wysiwyg/widgets/link_tools.js @@ -55,6 +55,7 @@ export class LinkTools extends Link { this.$link = newProps.link ? $(newProps.link) : this.link; this._setSelectOptionFromLink(); this._updateOptionsUI(); + this._updateLabelInput(); }); onMounted(() => { this._observer = new MutationObserver(records => {