Gantt ยท console.warn
gantt: a '{event}' before-handler rejected; the action was cancelled.
Printed by Gantt, prefixed [lattice], since 1.36.0.
Warnings reference › gantt.beforeReject:*
- Identifier
gantt.beforeReject:*- Raised by
- Gantt
- Since
- 1.36.0
What happened
An asynchronous before-handler returned a promise that rejected. The controller waits for every deferred handler and treats a rejection as a veto: 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.
Reference
Covered in full at the API reference.