mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-03 07:42:15 -08:00
Fix dragging text to prompt
This commit is contained in:
parent
89f9faa633
commit
a862428902
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
window.onload = (function(){
|
||||
window.addEventListener('drop', e => {
|
||||
const target = e.composedPath()[0];
|
||||
if (target.placeholder.indexOf("Prompt") == -1) return;
|
||||
if (e.dataTransfer.files.length == 0 || target.placeholder.indexOf("Prompt") == -1) return;
|
||||
|
||||
let prompt_target = get_tab_index('tabs') == 1 ? "img2img_prompt_image" : "txt2img_prompt_image";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue