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:
{ fragile: undefined from: u {$ready: Array(4), config: {…}, B: {…}, h: {…}, o: {…}, …} index: 7 source: ["/yiyui"] start: "/yiyui" target: null to: null x_offset: -20 y_offset: -10 }
According to documentation, there events shoudl return target and to:
https://docs.webix.com/api__ui.filemanager_onbeforedragin_event.html
Thanks