cancelable option

An event option saying listeners may call preventDefault to cancel the action the event announces.

In more detail

When a component dispatches a cancelable event before acting, dispatchEvent returns false if any listener vetoed it, so the component can stop. This is a simple confirmation hook between components.

Related terms

Taught in

References