Hi, how can I prevent from dropping onto files (eg. images)?
https://snippet.webix.com/ax8l48z4
I added a onBeforeDragIn and a onBeforeDrop, expecting to capture the target so I could prevent the drop if the target is not a folder.
However, these functions return no target:
The principle stays the same, but since the structure is a bit different, you will need to refer to the context.target in this mode: https://snippet.webix.com/g9zp2aiy.
If you were to use more than a single mode, you could implement a check for the current mode and change your behaviour accordingly - https://snippet.webix.com/26gs3odr.