Our flexible Kanban board for managing tasks with drag drop


Post by raining »

when Dragging a card quickly, ”console“ will show these error。
Image
Image


Post by tasnim »

Is it what you're experiencing https://github.com/bryntum/support/issues/4859 ?


Post by raining »

tasnim wrote: Wed Aug 10, 2022 9:46 am

Is it what you're experiencing https://github.com/bryntum/support/issues/4859 ?

yes,It's the same thing.but I don't see any answer to solve it.


Post by mats »

We'll look into this shortly!


Post by raining »

How can I disable the drag current task when the task startDrag but previous drag don't finished.I doubt this is
this topic problem's reason of drag quickly.


Post by marcio »

Hi raining,

You can use the https://www.bryntum.com/docs/taskboard/api/TaskBoard/view/TaskBoardBase#event-beforeTaskDrag event. Returning false will not allow the task to be dragged

listeners : {
        beforeTaskDrag : (eventData) => {
            // .b-dragging-item is added to the card when being dragged and removed after drag is completed
            const draggingItems = document.querySelector('.b-dragging-item');
            return eventData.taskRecords.length !== draggingItems?.length;
        }
    }

Best regards,
Márcio


Post by raining »

I try it, It's can't resolve the problem of drag quickly.


Post by tasnim »

After using the beforeDrag listeners that Marcio provided. I'm not able to reproduce the error. seems to be working fine here.
Are you getting the same errors?


Post Reply