mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-03-26 14:56:28 +01:00
Fix the behavior of the use as input button
Clicking the button toggles the task container behind it.
This commit is contained in:
parent
a4c6f28a70
commit
a931aa59a3
@ -774,7 +774,10 @@ function createInitImageHover(taskEntry) {
|
||||
img.src = taskEntry.querySelector('div.task-initimg > img').src
|
||||
$tooltip.append(img)
|
||||
$tooltip.append(`<div class="top-right"><button>Use as Input</button></div>`)
|
||||
$tooltip.find('button').on('click', (e) => { onUseAsInputClick(null,img) } )
|
||||
$tooltip.find('button').on('click', (e) => {
|
||||
e.stopPropagation()
|
||||
onUseAsInputClick(null,img)
|
||||
})
|
||||
}
|
||||
|
||||
let startX, startY;
|
||||
|
Loading…
Reference in New Issue
Block a user