fix: flickering issue on attach image

This commit is contained in:
sokumon 2026-01-07 01:54:47 +05:30
parent 1bbf13bc05
commit 2dbcfc8d5b

View file

@ -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()}"