[Chrome Browser] drag-n-drop is broken
Here is the demo which uses the same code and markup as official http://jimliu.github.io/angular-ui-tree/tree.html
The only difference is that it uses the latest ui.tree code v2.1.4, while the official example uses 2.0.13.
It only works if you have this setup:
- have browser window with the tree
- have another browser window on top of it with whatever site loaded in it, overlapping the window with the tree
- make sure the browser window has focus (click on it) - move mouse over to the window with the tree and try dragging - it will work
Here is the animaged gif, demoing the behaviour:

In the Plunker example source code, feel free to uncomment v2.0.13 and it will work
I tested it times, it seemed that it works on my chrome(the same version with yours), really wired!
I will test it again.
When I tested it on windows, I got the same error! I'll fixed later!
I've been having similar problems too.
Hello, any update on this?
Think I am having the same problems with the latest version 2.1.4.
Currently using 2.0.13, which works fine.
We are having the same issue. Any news on this?
Seems we encountering the same issue on Windows platform as well. Looking forward to a fix. It's really weird.
My team is also having this issue. Any update on when a fix might happen?
I cannot reproduce this bug. The tree is always movable, whatever I do. Could you confirm that you're still having the problem with the latest chrome version?
We still observe this problem on windows + chrome. I will update with specific environment information later.
I was able to resolve the problem by disabling Batarang Chrome extension. Once I disabled Batarang, the tree control began working without a problem.
I do have Batarang activated and I cannot reproduce this bug. Any of you has more information?
It's quite difficult to solve a bug I cannot reproduce :smile:
Hi @clementprevot ,
This bug does not happen all the time, but it is fairly frequent that we have encountered it few times a week. It just happened again on my colleague's windows box. Here is the environment information.
Chrome version: 37.0.2062.103 m OS: Windows 7 Enterprise SP1 x64 Angular-ui-tree: 2.1.4
We have two tree that are allowed to drag from the left one to the right one, or drag&drop within the right one.
What I observed is,
- Focus on the Chrome tab/window which has the page with three
- All the blocks are not drag-able
- Focus on another Chrome window, the blocks in both trees can be drag&dropped. The focus is brought back to the tab/widow with tree at the same time.
- All the blocks are not drag-able again.
- Focus on another application window, same as what happens to 3.
Hopefully these will help you to reproduce the problem.
Greg, do you have Batarang enabled? The issue went away for me once I disabled Batarang.
@ddotm no, I checked there were only three chrome apps installed on my colleague's Chrome, no extension. The apps are
- PostMan
- Rest Console
Cant remember the third one.
Update, this issue appears in incognito mode as well. Thus this is not caused by extension/plugin.
If anyone is still interested, just use nodrag attribute, instead of data-nodrag
Hi @ex37, thanks for the note! I will give a try and update here.
Thanks ex37, looks like it works.
Hi @ex37,
I just tried to use nodrag instead of data-nodrag but no luck. Apparently, angular-ui-tree does not recognize nodrag attribute.
Please see https://github.com/angular-ui-tree/angular-ui-tree/blob/master/source/services/helper.js#L56. It only check for specific data-nodrag attribute.