fix(link-preview): Correct synchronization of preview data on change. (#26641)
- Use 'config' attribute instead deprecated 'options' which is always undefined and prevent updating the preview data. Co-authored-by: Anes Fassih <anes.fassih@nassej.com>
This commit is contained in:
parent
b1193675dd
commit
35a02b8d0a
1 changed files with 2 additions and 2 deletions
|
|
@ -74,9 +74,9 @@ frappe.ui.LinkPreview = class {
|
|||
}
|
||||
|
||||
this.popover_timeout = setTimeout(() => {
|
||||
if (this.popover && this.popover.options) {
|
||||
if (this.popover && this.popover.config) {
|
||||
let new_content = this.get_popover_html(preview_data);
|
||||
this.popover.options.content = new_content;
|
||||
this.popover.config.content = new_content;
|
||||
} else {
|
||||
this.init_preview_popover(preview_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue