Kanban ยท console.warn
a '{event}' before-handler rejected; the action was cancelled.
Printed by Kanban, prefixed [lattice], since 1.36.0.
Warnings reference › kanban:beforeReject:*
- Identifier
kanban:beforeReject:*- Raised by
- Kanban
- Since
- 1.36.0
What happened
An asynchronous before-handler returned a promise that rejected. The board waits for every deferred handler and treats a rejection as a veto, so the action was cancelled and the reason reported.
The fix
The rejection reason is attached to the console line. Resolve false to veto; resolve anything else to allow.
The smallest fix
board.on('beforeMove', async (e) => (await mayMove(e)) !== false);
Reference
Covered in full at the API reference.