[FIX] web_editor: fix link label not getting updated

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) <sge@odoo.com>
This commit is contained in:
Deependra Solanki
2023-12-05 21:15:28 +00:00
parent 5483208d02
commit 790532a97e
@@ -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 => {