AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
131.68k stars 25.27k forks source link

[Bug]: Prompt in textarea cannot be drag and drop since 1.9.0 #15645

Open xdejiko opened 3 weeks ago

xdejiko commented 3 weeks ago

Checklist

What happened?

drag and drop prompt text in textarea is not working since 1.9.0rc, it's work at 1.8.0

Steps to reproduce the problem

  1. Type "masterpiece, highly details, ultra quality" in prompt
  2. Select masterpiece and drag it between "highly details" and "ultra quality"
  3. Nothing happened

What should have happened?

"masterpiece" between "highly details" and "ultra quality"

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-04-27-20-12.json

Console logs

dragdrop.js?1713798036.0:97 
GET https://127.0.0.1:8080/masterpiece 404 (Not Found)
(anonymous) @ dragdrop.js?1713798036.0:97
dragdrop.js?1713798036.0:99 Error fetching URL: masterpiece 404
(anonymous) @ dragdrop.js?1713798036.0:99

Additional information

No response

missionfloyd commented 3 weeks ago

Prompts can also be reordered with Alt+Left/Right.

w-e-w commented 3 weeks ago

my guess this is the cause

irrc this was to support drag drop image as input in some browsers like firefox

xdejiko commented 3 weeks ago

Prompts can also be reordered with Alt+Left/Right.

True but using mouse more accuracy and quicker for long prompt.

my guess this is the cause

irrc this was to support drag drop image as input in some browsers like firefox

Correct, the console logs shown it caused by dragdrop.js