Lattice Grid Buy a licence

The grid (core) · console.warn

a '{type}' before-handler threw; the action was cancelled.

Printed by The grid (core), prefixed [lattice], since 1.36.0.

Warnings referencebus.beforeThrow:*:*

Identifier
bus.beforeThrow:*:*
Raised by
The grid (core)
Since
1.36.0

What happened

A before-event handler threw. A before-handler decides whether the action happens, so a throw is taken as a veto: the sort, edit, filter or move was cancelled and the corresponding …:cancelled event fired. It is surfaced rather than swallowed because the action is unsafe and the host has to see why.

The fix

The error is attached to the console line. To veto deliberately, return false or call preventDefault().

The smallest fix

grid.on('beforeEdit', (e) => { if (locked(e.key)) e.preventDefault('locked'); });

Reference

Covered in full at the API reference.