Open ibrahimerbas opened 4 years ago
when using droppable with options like following; droppable:{data:DropTo,options:{drop:function(e,ui){//this is not firing;}}}
The problem is solved when I edit the source code as follows.
ko.bindingHandlers.droppable = { init: function(element, valueAccessor, allBindingsAccessor, data, context) { ....... var optionsDropEvent = droppableOptions.drop; //set drop method droppableOptions.drop = function(event, ui) { var droppedItem = dataGet(ui.draggable[0], DRAGKEY) || dataGet(ui.draggable[0], ITEMKEY); value(droppedItem); if (optionsDropEvent ) optionsDropEvent(event, ui); };
when using droppable with options like following; droppable:{data:DropTo,options:{drop:function(e,ui){//this is not firing;}}}
The problem is solved when I edit the source code as follows.
ko.bindingHandlers.droppable = { init: function(element, valueAccessor, allBindingsAccessor, data, context) { ....... var optionsDropEvent = droppableOptions.drop; //set drop method droppableOptions.drop = function(event, ui) { var droppedItem = dataGet(ui.draggable[0], DRAGKEY) || dataGet(ui.draggable[0], ITEMKEY); value(droppedItem); if (optionsDropEvent ) optionsDropEvent(event, ui); };