Our flexible Kanban board for managing tasks with drag drop


Post by stewart_wo »

Why does a dummy task appear when I click the 'Add New Task' button?

Image

When I click the cancel button and the close icon, why is the dummy task still visible in the UI? Why isn't it removed from the UI?

We want the task to only appear in the UI after clicking the save button.


Post by johan.isaksson »

Hi,

The "Add new task" button that is built in does add a new task to the task store, that is its purpose. It does not open an editor unless I am mistaken, so that is probably application code? If you want some other behavior in your app, I recommend replacing it with your own button (docs for the column toolbar feature here https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnToolbars).

The task edit feature requires a task to exist in the store to have something to edit. If you want to remove it on cancel, you can catch the cancel event on the TaskBoard and handle it there:

taskboard.on('cancel', e => console.log(e));
Best regards,
Johan Isaksson

Post Reply