fix: flickering issue on attach image
This commit is contained in:
parent
1bbf13bc05
commit
2dbcfc8d5b
1 changed files with 2 additions and 1 deletions
|
|
@ -3,9 +3,10 @@ frappe.ui.form.ControlAttachImage = class ControlAttachImage extends frappe.ui.f
|
|||
super.make_input();
|
||||
|
||||
let $file_link = this.$value.find(".attached-file-link");
|
||||
// Changing placement from top to bottom to avoid flickering. Fix with better solution
|
||||
$file_link.popover({
|
||||
trigger: "hover",
|
||||
placement: "top",
|
||||
placement: "bottom",
|
||||
content: () => {
|
||||
return `<div>
|
||||
<img src="${this.get_value()}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue