I'm trying to add a custom drop event to each tree view node so that I can handle the 'drop' event when a file is dropped onto the node element from Windows File Explorer. My html code (with the style section removed) looks like this:
I'm binding the view model like this:
My data looks like this:
The drop event does not fire when I drag a file onto a node. I've tried replacing 'drop' with 'click' just to see if I can fire a click event, but that event doesn't fire when a node is clicked. I think that what I'm trying to do should be possible because I've use this same method with simple DIV elements and files dropped on them from File Explorer cause the drop event to fire perfectly.
Any ideas what I'm doing wrong?