mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-03 15:52:44 -08:00
fix paste not working in firefox
fix paste always going into txt2img field
This commit is contained in:
parent
a156c097ab
commit
33ae6be55e
2 changed files with 14 additions and 17 deletions
2
javascript/dragdrop.js
vendored
2
javascript/dragdrop.js
vendored
|
|
@ -43,7 +43,7 @@ function dropReplaceImage( imgWrap, files ) {
|
|||
window.document.addEventListener('dragover', e => {
|
||||
const target = e.composedPath()[0];
|
||||
const imgWrap = target.closest('[data-testid="image"]');
|
||||
if ( !imgWrap ) {
|
||||
if ( !imgWrap && target.placeholder != "Prompt") {
|
||||
return;
|
||||
}
|
||||
e.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue