question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prevent a node from becoming a "folder" when a node is dropped on it

See original GitHub issue

Hi, I’m working with dnd. Normally when I dnd over an node that have no children, it becomes in a node with children (I call it folder in my specific case).

become_folder

So, I know that I can use the state: { dropable: false }, option. The problem is when I apply this to all my nodes with no children and the parent node is expanded, there is no way to drop any node inside, is like thers’s no droppable area available.

cant_drop

Is there any way to handle this? Thanks in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amsikcommented, Nov 7, 2018

Hi. Yes, it is a bug. I will fix it as soon as possible. Thanks for the example

0reactions
jago86commented, Nov 8, 2018

Awesome! You’re the best my friend! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

jstree prevent moving node into child nodes - Stack Overflow
The issue I'm having is that I'm not sure how to set that some nodes are not folders. Every node has a class...
Read more >
How to disable the dropping of an node next to the root node ...
Hello, I'm using the RadTreeView with only ONE root node. My ItemsSource is FolderData. FolderData has only one Item - the root node....
Read more >
Prevent drop in some nodes | ASP.NET MVC Forums
In this sample, We have separated nodes in Folders and Files, The folder nodes can be able to drag and drop but file...
Read more >
KNIME Workbench Guide - KNIME Documentation
Nodes can be moved into the workflow editor by dragging and dropping them. ... public folder on the KNIME Hub including data they...
Read more >
How to block dropping ON certain nodes while allowing to ...
Hi DevExperts, I'm implementing a treelist which will work a bit like Windows Explorer, i.e. a tree of folders and documents.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found