Drag 'n drop removes items

When I do a drag 'n drop action, my item sometimes disappears. This occurs when dropping into an OR or AND building block or a “Trigger Wait for” or “If-Then”. It’s so annoying!

It happened 3 times just in the last few minutes, and the only way to fix it is to hope you saved before dragging, and then refresh and try again over and over and over again until it finally stops or go to the YAML output and manually copy-paste.

What’s going on?

This bug has been ongoing since January 2025, and I started Home Assistant in April 2024.

Sadly, the bug never got fixed even though I update weekly hoping it’ll be fixed, and I haven’t seen anyone complaining. Are people not using the drag 'n drop feature?

To me, this is one of those p1 bugs because customers lose data, and it’s a silent failure. You don’t get any indication the drag 'n drop failed, and the item you dragged disappears no matter how deeply-nested it was. Sure, I can work around it, but only after I’ve failed multiple times.

2 Likes

If you have identified any particular sequence that makes this happen, please add any relevant info to the bug thread.

I was never able to reproduce this myself :person_shrugging:

What steps are you doing to test? It’s random for me. There’s a 70% chance that anything I drag into a Not, And, Or, If-then, Choose, etc will disappear.

1 Like

I am also having this issue, and have had it for months now. It has just been a minor - sometimes major - annoyance, but today I was trying to turn a collection of three scripts into a single script with fields and checkboxes, when it angered me enough to try to hunt it down more!

I’ve posted more in depth in a comment on the GitHub issue here, though it has been marked as stale, which it sadly very much isn’t - not for me anyway.

I posted a video demonstrating the bug into my GitHub comment, this one:

The bug happens at approx 12 seconds into the video, as I try to copy the “Automation turn off” action from the “If/then” group into the “Run in sequence” group at the bottom.

2 Likes

That sucks.

It keeps getting me. Unless I go into YAML mode, something that’s not easy on my phone, this drag 'n drop operation is required.

And because of that, I often end up losing time and potentially data if I don’t save often enough.

I’m surprised this issue exists, but I’m also surprised it’s been months without a fix. I’m curious if others have noticed it too, and if not, why not.

This is occurs for me just about every time I do a drag 'n drop operation.

1 Like

Yes, I can confirm this as well.
It sometimes happens to me when I am working on a laptop, using the touch pad instead of a mouse.
Up to now I never had this when using a mouse.

1 Like

been happening to me for some time now too. Handful of months. It’s definately a new thing.

I found 90% of the time if I save and let it settle (ie; just wait a good 20 seconds or so) then I can move it without issue. The other 10% of the time… nope. TBH I have not spent much time trying to figuire out why… it’s just a really strange one. I even tried moving stuff from the bottom to see if theres a difference in the direction I’m draggin gthe block. I would say dragging up feels like its losing more than dragging down, but I have not really kept track - just a subjective feeling based on how much frustration I can summon haha.

Often I am having to make a duplicate of what I want to move - then save the script/automation. Then wait. And then wait a bit more. Then move. 90% of the time, the wait makes the difference. This is why I use the word ‘settle’. Feels like the system is settling before it works. I might be imaging that part but the waiting helps 90% of the time. So many workarounds for it now, all time consuming. And if it dissapears its easier to refresh after the fresh save…

Though it was just me… had enough of it happening today, so landed up here this evening. :slight_smile:

2 Likes

That gives me some more insight.

I use various input methods:

  • Mouse on my Windows desktop
  • Touch pad mouse on my Surface tablet
  • Pen on my Surface tablet
  • Touch on my Surface tablet
  • Touch on my Samsung Android phone
  • Pen on my Samsung Android phone

I’ve seen it just work sometimes, but I’m 99% sure it still happens even with a physical mouse in Chrome in Windows.

I keep running into this issue, and I’m sure others are too. It takes 1 drag, and I lose everything.

I’m curious about other things. How are you running Home Assistant? Did you maybe extend your “record” logger so it keeps track of history longer?

I’m running Home Assistant on an RPi4, and I keep my logs for 90 days.

1 Like

Yep for sure, when it happens I leave the editor without saving, then go back in and use cut/paste which seems to work ok

2 Likes